This commit is contained in:
EXetoC 2014-05-03 23:32:14 +02:00
commit 8802688e9f
2 changed files with 22 additions and 13 deletions

View file

@ -0,0 +1,8 @@
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()