Advertisement
Guest User

Untitled

a guest
Jun 19th, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 0.25 KB | None | 0 0
  1. # without doasync macro
  2. proc dosomething() {.async.} =
  3.   echo "hello"
  4. asyncCheck dosomething()
  5.  
  6. # with doasync macro
  7. # doasync automatically creates a proc with all the code inside the next bloco and calls it with asyncCheck
  8. doasync:
  9.   echo "hello"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement