summary refs log tree commit diff stats
path: root/tests/async/t11558.nim
blob: 99961e7b6dd510c4297ba41d2b816307785ea5c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
discard """
output: "Hello\n9"
"""
import std/asyncdispatch

proc foo(): Future[string] {.async.} =
  "Hello"

proc bar(): Future[int] {.async.} =
  result = 9

echo waitFor foo()
echo waitFor bar()