summary refs log tree commit diff stats
path: root/tests/async/t15148.nim
blob: ba14c1157b1260bb8535adf2eb3d031b95857d73 (plain) (blame)
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()