Our while loop also checks "actor-alive?" to see whether or not
it is still registered.
In general, if you keep a loop in your actor that regularly yields
-to the scheduler, you should check this.
+to the scheduler, you should check this.[fn:actor-alive-deprecated-soon]
(An alternate way to handle it would be to not use a while loop at all
but simply send a message to ourselves with "<-" to call the
sleeper-loop handler again.
worker> Whew! Free at last.
#+END_SRC
+[fn:actor-alive-deprecated-soon]
+ Or rather, for now you should call =actor-alive?= if your code
+ is looping like this.
+ In the future, after an actor dies, its coroutines will
+ automatically be "canceled".
+
** Writing our own network-enabled actor
So, you want to write a networked actor!