Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A simple script to demonstrate the @async macro in Julia
begin
tmp1 = @async sleep(20)
tmp2 = @async sleep(30)
@time fetch(tmp1)
@time fetch(tmp2)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment