Update.
This commit is contained in:
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
// retoor <retoor@molodetz.nl>
|
||||
|
||||
import "scheduler" for Scheduler, Future
|
||||
|
||||
var double = async { |x| x * 2 }
|
||||
var addTen = async { |x| x + 10 }
|
||||
|
||||
System.print(await addTen(await double(5))) // expect: 20
|
||||
System.print(await double(await addTen(3))) // expect: 26
|
||||
System.print(await double(await double(await double(2)))) // expect: 16
|
||||
Reference in New Issue
Block a user