Nim/tests/async/tnestedpfuturetypeparam.nim
2014-07-13 11:02:34 +01:00

8 lines
197 B
Nim

import asyncdispatch, asyncnet
proc main {.async.} =
proc f: PFuture[seq[int]] {.async.} =
await newAsyncSocket().connect("www.google.com", TPort(80))
let x = await f()
asyncCheck main()