-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add AsyncResult.ofTask with non-generic Task passed in #79
Comments
|
We have a function for that ofTaskAction . |
I tried that, this is the error I get:
|
let me prepare a complete example... |
Actually, I get an error even with this:
the error is
Is this not compatible with F# 4.5? |
Hmm we have a test that does bind against a unit task. FsToolkit.ErrorHandling/tests/FsToolkit.ErrorHandling.Tests/AsyncResultCE.fs Lines 148 to 154 in e9e05ba
Version 1.2.6 requires FSharp 4.6.2. |
It doesn't look like there's a good reason to not drop the minimum required FSharp.Core version, I'll open a PR for that. |
Ignore the result: let! _ = async { return Ok "test" } or have the value be a unit: do! async { return Ok () } |
Aaaah, thank you so much! It makes sense, I get it. Indeed I would appreciate if the min version was F# 4.5, since that is what the Mono packages for Ubuntu ships. |
Methods like ConnectAsync returns a non-generic Task, which cannot be used with AsyncResult.ofTask
The text was updated successfully, but these errors were encountered: