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
|
|
@ -82,7 +82,7 @@ Async traceback:
|
|||
asyncmacro\.nim\(\d+?\)\s+?a
|
||||
asyncmacro\.nim\(\d+?\)\s+?aNimAsyncContinue
|
||||
## Resumes an async procedure
|
||||
tasync_traceback\.nim\(\d+?\)\s+?aIter
|
||||
asyncmacro\.nim\(\d+?\)\s+?aIter
|
||||
asyncfutures\.nim\(\d+?\)\s+?read
|
||||
\]#
|
||||
Exception message: b failure
|
||||
|
|
@ -110,13 +110,15 @@ Async traceback:
|
|||
## Executes pending callbacks
|
||||
asyncmacro\.nim\(\d+?\)\s+?fooNimAsyncContinue
|
||||
## Resumes an async procedure
|
||||
tasync_traceback\.nim\(\d+?\)\s+?fooIter
|
||||
asyncmacro\.nim\(\d+?\)\s+?fooIter
|
||||
asyncfutures\.nim\(\d+?\)\s+?read
|
||||
\]#
|
||||
Exception message: bar failure
|
||||
Exception type:
|
||||
"""
|
||||
|
||||
# TODO: is asyncmacro good enough location for fooIter traceback/debugging? just put the callsite info for all?
|
||||
|
||||
let resLines = splitLines(result.strip)
|
||||
let expLines = splitLines(expected.strip)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue