Merge pull request #9687 from narimiran/fix-7192

export `asyncdispatch.callSoon` (fixes #7192)
This commit is contained in:
Dominik Picheta 2018-11-13 21:12:19 +00:00 • committed by GitHub
commit 679a52f53c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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()