mirror of
https://github.com/logos-storage/nim-chronos.git
synced 2026-01-04 22:43:07 +00:00
18 lines
277 B
Nim
18 lines
277 B
Nim
import os
|
|
import ../../chronos
|
|
|
|
proc child11() {.async.} =
|
|
echo "I ran"
|
|
await sleepAsync(10.milliseconds)
|
|
|
|
proc child2() {.async.} =
|
|
os.sleep(10)
|
|
|
|
proc child1() {.async.} =
|
|
await child2()
|
|
await child11()
|
|
|
|
proc p() {.async.} =
|
|
echo "r1"
|
|
await child1()
|
|
echo "r2" |