1 2 3 4 5 6 7 8 9 10 11 12
import asyncdispatch, asyncfile, os const Filename = "t15148.txt" proc saveEmpty() {.async.} = let text = "" file = openAsync(Filename, fmWrite) await file.write(text) file.close() waitFor saveEmpty()