8 lines
197 B
Nim
8 lines
197 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()
|
|
|
|
asyncCheck main()
|