1 2 3 4 5 6 7 8 9 10 11
discard """ output: 42 """ import asyncdispatch proc foo(): Future[int] {.async.} = template ret() = return 42 ret() echo (waitFor foo())