tdiscardableproc.nim 196 B

12345678910
  1. discard """
  2. errormsg: "Cannot make async proc discardable. Futures have to be checked with `asyncCheck` instead of discarded"
  3. """
  4. import async
  5. proc foo {.async, discardable.} = discard
  6. foo()