3

I want to define async property which is about throwing an exception asynchronously.
However, I could find only Prop.throws which accepts lazy, but not Asyn, Task or ValueTask.

Isn't async supported?

Pavel Voronin
  • 13,503
  • 7
  • 71
  • 137
  • 3
    AFAIK, the release versions of FsCheck don't support async, while the prerelease versions do. This has been the status quo for quite a few years now. I'm not sure this issue is the most recent word on this topic, but it was what I could dig up on short notice: https://github.com/fscheck/FsCheck/issues/167 – Mark Seemann Aug 10 '21 at 09:10
  • @MarkSeemann Yes, I saw this issue, but it was closed in 2017 =) My expectation was that since then the support was added. – Pavel Voronin Aug 10 '21 at 09:15
  • I don't think it is. IIRC, the `async` support is only in the version 3 branch, and version 3 is still only available as prerelease. – Mark Seemann Aug 10 '21 at 10:19
  • https://github.com/fscheck/FsCheck/issues/579 – Pavel Voronin Aug 12 '21 at 15:11

0 Answers0