Created
July 31, 2011 20:50
-
-
Save manutter51/1117190 to your computer and use it in GitHub Desktop.
Strange agent behavior
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user> (def a (agent 100)) | |
#'user/a | |
user> @a | |
100 | |
user> (agent-error a) | |
nil | |
user> (send a + 100) | |
#<Agent@73cc11: 100> | |
user> @a | |
100 | |
user> (agent-error a) | |
nil | |
user> (await-for 10000 a) | |
false | |
user> (agent-error a) | |
nil | |
user> @a | |
100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment