14 lines
278 B
Plaintext
14 lines
278 B
Plaintext
// Simple await example for testing MIR Await instruction
|
|
|
|
static box Main {
|
|
main() {
|
|
local f
|
|
f = me.createFuture()
|
|
return await f
|
|
}
|
|
|
|
createFuture() {
|
|
// Simple future that resolves to 100
|
|
return new FutureBox(100)
|
|
}
|
|
} |