t11558.nim 199 B

1234567891011121314
  1. discard """
  2. output: "Hello\n9"
  3. """
  4. import std/asyncdispatch
  5. proc foo(): Future[string] {.async.} =
  6. "Hello"
  7. proc bar(): Future[int] {.async.} =
  8. result = 9
  9. echo waitFor foo()
  10. echo waitFor bar()