Created
June 25, 2016 19:24
-
-
Save tehrengruber/8a0f0627a48ff8bfc6b6ba93b9b3bb99 to your computer and use it in GitHub Desktop.
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
julia> c=b.args[2]^C | |
julia> c = Condition() | |
@Condition(Any[]) | |
julia> @as^C | |
julia> @async begin | |
wait(c) | |
println("im notifyed") | |
end | |
Task (runnable) @0x00007f2ae3a16bf0 | |
julia> @async begin | |
println("do some work") | |
sleep(5); notify(c) | |
println("im finished") | |
end | |
do some work | |
Task (queued) @0x00007f2ae3b009d0 | |
julia> im finished | |
im notifyed | |
julia> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment