mashingan / anonimongo

Another Nim pure Mongo DB driver
MIT License
43 stars 5 forks source link

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

Closed timotheecour closed 4 years ago

timotheecour commented 4 years ago

same issue as https://github.com/SSPkrolik/nimongo/issues/88:

/Users/timothee/.nimble/pkgs/anonimongo-0.2.0/anonimongo/core/wire.nim(192, 60) Error: Cannot make async proc discardable. Futures have to be checked with asyncCheck instead of discarded

it happens since nim as of nim-lang/Nim#14176

mashingan commented 4 years ago

Several procs were defined in older version as pragma async and discardable could be passed together. But after I checked again, it shouldn't really discardable.