Initial analysis: Phase 9.5 HTTP Server implementation plan
Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
12
test_async_simple.nyash
Normal file
12
test_async_simple.nyash
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
// Simple async test with proper variable declarations
|
||||||
|
static box Main {
|
||||||
|
init { result }
|
||||||
|
|
||||||
|
main() {
|
||||||
|
local f1
|
||||||
|
nowait f1 = 42
|
||||||
|
me.result = await f1
|
||||||
|
print(me.result)
|
||||||
|
return me.result
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user