actors: Don't reply to a message when the messsage doesn't need a reply.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Fri, 20 Jan 2017 23:58:20 +0000 (17:58 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sat, 21 Jan 2017 00:01:00 +0000 (18:01 -0600)
commit2aab08f137540cf22d5f5e32467e838c3ab18637
treef263affe278be03f9018b916227218228128bf08
parent737c0b20467085199c5c189f68c495f239118e68
actors: Don't reply to a message when the messsage doesn't need a reply.

* 8sync/actors.scm (<-reply, <-reply*, <-reply-wait, <-reply-wait*):
Only reply to messages if they're waiting on a reply still.
This avoids the challenges of actors never having requested a
reply in the first place resulting in trying to resume a waiting
coroutine that doesn't exist, as well as maybe the bonus one of not
replying multiple times to a message.
8sync/actors.scm