export asyncdispatch.callSoon (fixes #7192)

This commit is contained in:
narimiran 2018-11-12 15:40:33 +01:00
commit c2b16b46ec
2 changed files with 18 additions and 3 deletions

14
tests/async/t7192.nim Normal file
View file

@ -0,0 +1,14 @@
discard """
output: '''
testCallback()
'''
"""
import asyncdispatch
proc testCallback() =
echo "testCallback()"
when isMainModule:
callSoon(testCallback)
poll()