From c2b16b46ecf9e62e411e5b7e6d4d861c43b1b0fe Mon Sep 17 00:00:00 2001 From: narimiran Date: Mon, 12 Nov 2018 15:40:33 +0100 Subject: export `asyncdispatch.callSoon` (fixes #7192) --- tests/async/t7192.nim | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 tests/async/t7192.nim (limited to 'tests/async') 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() -- cgit 1.4.1-2-gfad0