summary refs log tree commit diff stats
path: root/tests/async
diff options
context:
space:
mode:
authornarimiran <narimiran@disroot.org>2018-11-12 15:40:33 +0100
committernarimiran <narimiran@disroot.org>2018-11-12 15:40:33 +0100
commitc2b16b46ecf9e62e411e5b7e6d4d861c43b1b0fe (patch)
tree00bbe1ef4e0a7bf7e4cd95c69c3f34d3c80b6692 /tests/async
parent130c218ff9e6349060b83114b425be7d3fe4241a (diff)
downloadNim-c2b16b46ecf9e62e411e5b7e6d4d861c43b1b0fe.tar.gz
export `asyncdispatch.callSoon` (fixes #7192)
Diffstat (limited to 'tests/async')
-rw-r--r--tests/async/t7192.nim14
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()