Skip to content

Instantly share code, notes, and snippets.

@tehrengruber
Created June 25, 2016 19:24
Show Gist options
  • Save tehrengruber/8a0f0627a48ff8bfc6b6ba93b9b3bb99 to your computer and use it in GitHub Desktop.
Save tehrengruber/8a0f0627a48ff8bfc6b6ba93b9b3bb99 to your computer and use it in GitHub Desktop.
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