Skip to content
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

Make Wolverine aware of Task<unit> #1186

Open
nkosi23 opened this issue Dec 26, 2024 · 0 comments
Open

Make Wolverine aware of Task<unit> #1186

nkosi23 opened this issue Dec 26, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@nkosi23
Copy link

nkosi23 commented Dec 26, 2024

Is your feature request related to a problem? Please describe.
unit is the equivalent of void in F#, and F# tasks typically return a Task[unit] instead of returning a Task. The problem is, Wolverine ignores handlers returning a Task. This results in 404 responses.

Describe the solution you'd like
Wolverine automatically discovers handlers returning a Task

Describe alternatives you've considered
Casting Task[unit] into a task, but this is a little tedious to do every time even though this issue is relatively minor overall since returning nothing is relatively rare.

@jeremydmiller jeremydmiller added the enhancement New feature or request label Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants