Skip to content

Instantly share code, notes, and snippets.

@manutter51
Created July 31, 2011 20:50
Show Gist options
  • Save manutter51/1117190 to your computer and use it in GitHub Desktop.
Save manutter51/1117190 to your computer and use it in GitHub Desktop.
Strange agent behavior
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