# Pastebin kUGafxMa import asyncdispatch proc asyncString(a: string): Future[string] {.async.} = result = a & " sailor" echo "asyncString" echo GC_getStatistics() proc asyncEcho(a: string) {.async.} = echo "void async ", a proc asyncMain() {.async.} = echo "asyncMain" let b = "hello" let c = await asyncString(b) echo GC_getStatistics() await asyncEcho c echo GC_getStatistics() echo "start" GC_disable() echo GC_getStatistics() var fut = asyncMain() deepDispose(fut) echo GC_getStatistics() echo "finish"