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
Following code
import asyncdispatch proc testCallback() = echo "testCallback()" when isMainModule: callSoon(testCallback) poll()
must work, but generates exception:
testCallback() asyncdispatch.nim(1507) asyncbug asyncdispatch.nim(1511) poll asyncdispatch.nim(298) runOnce Error: unhandled exception: No handles or timers registered in dispatcher. [ValueError]
While following code
import asyncdispatch proc testCallback() = echo "testCallback()" when isMainModule: var p = getGlobalDispatcher() callSoon(testCallback) poll()
working as expected, without any error.
This is regression bug introduced by one of the recent PRs, because original callSoon proc is now not exported.
callSoon
The text was updated successfully, but these errors were encountered:
c2b16b4
Merge pull request #9687 from narimiran/fix-7192
679a52f
export `asyncdispatch.callSoon` (fixes #7192)
No branches or pull requests
Following code
must work, but generates exception:
While following code
working as expected, without any error.
This is regression bug introduced by one of the recent PRs, because original
callSoon
proc is now not exported.The text was updated successfully, but these errors were encountered: