// retoor <retoor@molodetz.nl>
import "scheduler" for Scheduler, Future
var getValue = async { |x| x }
var double = async { |x| x * 2 }
System.print(1 + await getValue(2)) // expect: 3
System.print(await double(3) + await double(4)) // expect: 14
System.print(await getValue(10) * 5) // expect: 50
System.print(100 - await getValue(30)) // expect: 70
System.print((await getValue(4)) * (await getValue(5))) // expect: 20