You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Within event_test.clj you'll notice that do-receive is a macro. I had to make it a macro because it did not work as a function. It compiles, but when the tests are executed I get the following error associated with the call to receive!:
java.lang.AssertionError: Assert failed: alts! used not in (go ...) block
The following code is the implementation I tested of do-receive as a function:
What happened before the changes: because no process watches await-message and tracing is off, the process crashes silently.
Second. We try to keep the semantics of ! and !! at the end of macro's name the same as in core.async. Therefore when for some reason you want to receive messages not in go-block and blocking is not an issue, receive!! can be used instead of receive!.
Within event_test.clj you'll notice that
do-receive
is a macro. I had to make it a macro because it did not work as a function. It compiles, but when the tests are executed I get the following error associated with the call toreceive!
:The following code is the implementation I tested of
do-receive
as a function:The odd thing is that the following similar code executes perfectly in a newly started
lein repl
:The text was updated successfully, but these errors were encountered: