Last active
May 7, 2020 10:36
-
-
Save hyrodium/b9ea4410a44a03cb34c21b462403a798 to your computer and use it in GitHub Desktop.
Sometimes `println` in Juno doesn't work well. This is a simple example.
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
versioninfo() | |
function busysleep(t) | |
T = time() | |
while -T+time()<t | |
end | |
end | |
begin | |
sleep(0.1) | |
println("A1", "A2") | |
end | |
begin | |
sleep(0.5) | |
println("B1", "B2") | |
end | |
begin | |
busysleep(0.1) | |
println("C1", "C2") | |
end | |
begin | |
busysleep(0.5) | |
println("C1", "C2") | |
end |
Author
hyrodium
commented
May 7, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment