Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
nitely committed Jan 1, 2025
1 parent 1ff2e7e commit e648b93
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/async/tasync_error_tracking.nim
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ proc err(throw: bool) =
if throw:
raise newException(MyError, "myerr")

block:
proc bar() {.async.} =
err(false)

proc foo() {.async.} =
await bar()

proc main {.async, raises: [MyError].} =
await foo()

waitFor main()

block:
proc foo() {.async, raises: [MyError].} =
err(false)
Expand Down

0 comments on commit e648b93

Please sign in to comment.