export asyncdispatch.callSoon (fixes #7192)
This commit is contained in:
parent
130c218ff9
commit
c2b16b46ec
2 changed files with 18 additions and 3 deletions
14
tests/async/t7192.nim
Normal file
14
tests/async/t7192.nim
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
discard """
|
||||
output: '''
|
||||
testCallback()
|
||||
'''
|
||||
"""
|
||||
|
||||
import asyncdispatch
|
||||
|
||||
proc testCallback() =
|
||||
echo "testCallback()"
|
||||
|
||||
when isMainModule:
|
||||
callSoon(testCallback)
|
||||
poll()
|
||||
Loading…
Add table
Add a link
Reference in a new issue