Skip to content

Commit 7ced806

Browse files
committed
added async
1 parent de92a1e commit 7ced806

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: client.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,9 @@ def collect_sorted(arr)
7878
c2 = SEMAPHORE_C.async{ c(ab2.wait) }
7979
c3 = SEMAPHORE_C.async{ c(ab3.wait) }
8080
collect_sorted([c1.wait, c2.wait, c3.wait])
81-
end.wait
81+
end
8282

83-
a(c123)
83+
a(c123.wait)
8484
end
8585

8686
total_time = Time.now - start

0 commit comments

Comments
 (0)