Fixes async tests.
This commit is contained in:
parent
dd33069d59
commit
56f11e2c95
3 changed files with 10 additions and 10 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue