tgenericasync.nim 169 B

123456789101112131415
  1. discard """
  2. output: '''123
  3. abc'''
  4. """
  5. # bug #4856
  6. import asyncdispatch
  7. proc say[T](t: T): Future[void] {.async.} =
  8. echo $t
  9. waitFor(say(123))
  10. waitFor(say("abc"))