Created
May 24, 2020 12:11
-
-
Save ceshine/68bb19921492543d3fca23b70d080e9b to your computer and use it in GitHub Desktop.
A simple script to demonstrate the @async macro in Julia
This file contains hidden or 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
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