Fixes async tests.

This commit is contained in:
Dominik Picheta 2014-09-09 01:17:07 +01:00
commit 56f11e2c95
3 changed files with 10 additions and 10 deletions

View file

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