Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # without doasync macro
- proc dosomething() {.async.} =
- echo "hello"
- asyncCheck dosomething()
- # with doasync macro
- # doasync automatically creates a proc with all the code inside the next bloco and calls it with asyncCheck
- doasync:
- echo "hello"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement