Another update from ingydotnet^djgoku
This commit is contained in:
parent
91df62d461
commit
948b86eafa
7604 changed files with 108452 additions and 22726 deletions
|
|
@ -0,0 +1,12 @@
|
|||
input = [3,2,4,7,3,6,9,1]
|
||||
output = Int[]
|
||||
|
||||
@sync for i in input
|
||||
@async begin
|
||||
sleep(i)
|
||||
push!(output, i)
|
||||
end
|
||||
end
|
||||
|
||||
@assert output == sort(input)
|
||||
println(output)
|
||||
Loading…
Add table
Add a link
Reference in a new issue