-
Notifications
You must be signed in to change notification settings - Fork 26
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
Implement async handling option: "async" | "task" for the fsharp target #31
Comments
Is Numpsy@d4f91f7 the right sort of thing? Notes:
|
@Numpsy you are on the right track, here is a checklist from the top of my head:
|
I'd thought it did, but then it looked like some of the existing uses only contain a single string, so I wasn't sure if I was missing something :-(
Hmm, I copied that from the existing code @ Line 106 in c02fd6e
target to Fable (capital F) with the current release actually causes it to generate a Shared Project (is that considered a bug then?)
Doing |
Yes, that's a bug! |
Considered resolved by merging #47 ? I'd wondered about adding CancellationToken parameters to the Task returning variants of the functions, but that could be a seperate change if needed. |
This is resolved and tested locally! thanks a lot @Numpsy ❤️ you can try this out as of v1.26 |
Let's worry about the cancellation token in a different issue 😉 |
Basically:
Where
async
is the default. To make the generated functions either returnAsync<'T>
orTask<'T>
For the latter you would need to include
Ply
as a dependency to the generated F# project.Related to #29
Might need a better API for generating the projects and their packages.
The text was updated successfully, but these errors were encountered: