diff options
author | narimiran <narimiran@disroot.org> | 2018-11-12 15:40:33 +0100 |
---|---|---|
committer | narimiran <narimiran@disroot.org> | 2018-11-12 15:40:33 +0100 |
commit | c2b16b46ecf9e62e411e5b7e6d4d861c43b1b0fe (patch) | |
tree | 00bbe1ef4e0a7bf7e4cd95c69c3f34d3c80b6692 /tests/async | |
parent | 130c218ff9e6349060b83114b425be7d3fe4241a (diff) | |
download | Nim-c2b16b46ecf9e62e411e5b7e6d4d861c43b1b0fe.tar.gz |
export `asyncdispatch.callSoon` (fixes #7192)
Diffstat (limited to 'tests/async')
-rw-r--r-- | tests/async/t7192.nim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/async/t7192.nim b/tests/async/t7192.nim new file mode 100644 index 000000000..c380f93e1 --- /dev/null +++ b/tests/async/t7192.nim @@ -0,0 +1,14 @@ +discard """ +output: ''' +testCallback() +''' +""" + +import asyncdispatch + +proc testCallback() = + echo "testCallback()" + +when isMainModule: + callSoon(testCallback) + poll() |