examples/futures.fy in fancy-0.3.3 vs examples/futures.fy in fancy-0.4.0
- old
+ new
@@ -1,9 +1,4 @@
-if: (ARGV[1]) then: |n| {
- "Using #{n} threads" println
- Future pool: $ n to_i
-}
-
fs = []
100 times: |i| {
f = { Thread sleep: 0.5; i println } @ call
fs << f
}
\ No newline at end of file