We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
and
The and function seems to only raise errors for the first async proc.
import std/asyncdispatch proc ok {.async.} = discard proc err {.async.} = raise newException(ValueError, "err") proc main {.async.} = try: await ok() and err() except ValueError: echo "err1" try: await err() and ok() except ValueError: echo "err2" try: await ok() and ok() and err() except ValueError: echo "err3" waitFor main()
Nim Compiler Version 2.1.1 [Linux: amd64] Compiled at 2024-05-11 Copyright (c) 2006-2024 by Andreas Rumpf
git hash: c91b33a active boot switches: -d:release
err2
err1 err2 err3
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
The
and
function seems to only raise errors for the first async proc.Nim Version
Nim Compiler Version 2.1.1 [Linux: amd64]
Compiled at 2024-05-11
Copyright (c) 2006-2024 by Andreas Rumpf
git hash: c91b33a
active boot switches: -d:release
Current Output
Expected Output
Possible Solution
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: