8 lines
195 B
Nim
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()
|