Make await a template (#12085)
* Make await a template * Generate await inside async/multisync
This commit is contained in:
parent
caf30e7cb5
commit
56584414f3
5 changed files with 69 additions and 134 deletions
|
|
@ -53,4 +53,13 @@ block: # nkCheckedFieldExpr
|
|||
|
||||
waitFor foo()
|
||||
|
||||
block: # 12743
|
||||
|
||||
template templ = await sleepAsync 0
|
||||
|
||||
proc prc {.async.} = templ
|
||||
|
||||
waitFor prc()
|
||||
|
||||
|
||||
echo "ok"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue