summary refs log blame commit diff stats
path: root/tests/async/tasyncsend4757.nim
blob: 1066f38e56a05d7c39b66f72fa8c860c66a4ce3a (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                         
           
discard """
  file: "tasyncsend4754.nim"
  output: "Finished"
"""

import asyncdispatch

proc f(): Future[void] {.async.} =
  let s = newAsyncNativeSocket()
  await s.connect("example.com", 80.Port)
  await s.send("123")
  echo "Finished"

waitFor f()