SSPkrolik / nimongo

Pure Nim lang MongoDB driver
http://sspkrolik.github.io/nimongo
MIT License
101 stars 20 forks source link

`Error: Cannot make async proc discardable` in nim devel #88

Open timotheecour opened 4 years ago

timotheecour commented 4 years ago

since nim as of https://github.com/nim-lang/Nim/pull/14176 I get this error:

Error: Cannot make async proc discardable. Futures have to be checked with asyncCheck instead of discarded

for example from here:

proc uploadFile*[T: Mongo|AsyncMongo](bucket: GridFs[T], f: AsyncFile, filename = "",
  metadata = null(), chunksize = 255 * 1024): Future[bool] {.async, discardable.} =