Thanks for example. Yes, I saw that notice in manual (about singlethreaded). Think this code does same my C#-example: import asyncdispatch, threadpool from os import sleep proc sum (count: int): int = result = 0 for i in 0..count: result += i proc ap1(): int = result = sum(100000000) echo "Async Result 1: " & $result proc ap2(): int = result = sum(10) echo "Async Result 2: " & $result var ap1Res = spawn ap1() var ap2Res = spawn ap2() while not ap1Res.isReady or not ap2Res.isReady: sleep(100)
But this adds even more questions, what is reason the use of async/await Probably I must re-read the manual