-
-
Save def-/59dee63d884775ff3e032674c226f310 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncdispatch | |
template doAsync(name: expr; body: untyped): untyped {.immediate.} = | |
proc name() {.async.} = | |
body | |
asyncCheck(name()) | |
doAsync(namething): | |
echo "hello" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment