-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tell
method in actor is not working with sleep
#110
Comments
You're right, the example in the docs is misleading. What happens there is that because |
Thank you for your kind explanation. When I replace def increment(delta: Int): Int =
counter += delta
// Thread.sleep(100)
(1 to 10000000).foreach(println)
println(counter)
counter I thought that |
Interesting! This surprised me as well, but it seems You can observe the interruption e.g. as follows:
|
I've expanded the example (4542e47), I'll close this for now as I think the code is fine, but please reopen if there are some more problems with |
The following code was not working as expected. (ox version: 0.0.24)
expected results: prints 5
actual results: prints nothing
When Thread.sleep(100) line was removed, it worked as expected.
The text was updated successfully, but these errors were encountered: