Skip to content

Instantly share code, notes, and snippets.

@hyrodium
Last active May 7, 2020 10:36
Show Gist options
  • Save hyrodium/b9ea4410a44a03cb34c21b462403a798 to your computer and use it in GitHub Desktop.
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.
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
@hyrodium
Copy link
Author

hyrodium commented May 7, 2020

f87927a9-f7ee-4313-b2ec-fb22545ffc1a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment