Add Makefile buildmanual target for manual generation and include faker_demo.wren, subprocess_async_demo.wren, subprocess_concurrent_demo.wren, and subprocess_fiber_demo.wren example scripts. Update manual sidebar across api pages to link new web-server tutorial and contributing section with module architecture, pure-wren/c-backed modules, foreign classes, async patterns, testing, and documentation pages.
14 lines
297 B
JavaScript
Vendored
14 lines
297 B
JavaScript
Vendored
// retoor <retoor@molodetz.nl>
|
|
|
|
import "scheduler" for Scheduler, Future
|
|
|
|
var future = async { 42 }
|
|
|
|
System.print(future is Future) // expect: true
|
|
|
|
var result = await future
|
|
|
|
System.print(result) // expect: 42
|
|
System.print(future.isDone) // expect: true
|
|
System.print(future.result) // expect: 42
|