-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
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
Not calling setGlobalDispatcher newDispatcher()
costs 500ms
#6846
Labels
Async
Everything related to Nim's async
Comments
The iterator generated by async is: iterator doStuffIter245003(): FutureBase {.closure.} =
var future245004 = asyncStdout.write "hello world\x0A"
yield future245004
future245004.read
complete(retFuture245002) But the iterator doStuffIter245003(): FutureBase {.closure.} =
var future245004 = asyncStdout.write "hello world\x0A"
if not future245004.finished:
yield future245004
future245004.read
complete(retFuture245002) |
Will be fixed by #6614 |
This appears to be fixed now. Reproduces in 0.17.2 but not 0.18.0 nor |
Araq
pushed a commit
that referenced
this issue
Aug 23, 2018
Araq
pushed a commit
that referenced
this issue
Aug 23, 2018
This was referenced Aug 6, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
time: 502ms
time with dispatcher: 2ms
The text was updated successfully, but these errors were encountered: