Nim/tests/async/tnestedpfuturetypeparam.nim
2014-09-09 01:17:07 +01:00

8 lines
195 B
Nim

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