Nim/tests/async/tnestedpfuturetypeparam.nim
2014-05-03 23:32:14 +02:00

8 lines
186 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()
main()