-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for F#
Async<'T>
as an awaitable type in minimal APIs (#…
…46898) * Remove unneeded unboxing/boxing * Add doc comment * Remove unused using * Convert F# Async<> to Task<> in request delegates * Use `CoercedAwaitableInfo` to convert `FSharp.Control.FSharpAsync<T>` values to `System.Threading.Tasks.Task<TResult>` when building request delegates and populate endpoint metadata accordingly. * Add tests for F# async request delegate support * F# async not supported by source generator * Add a comment to the request delegate source generator tests that explicitly calls out that F# async is not currently supported by the source generator. * Actually remove extra convert call * Shrink diff * Use CoercedAwaitableInfo in OpenApi gen * Use CoercedAwaitableInfo in EndpointMetadataApiDescriptionProvider * Add FSharpAsync tests for EndpointMetadataApiDescriptionProvider * Add runtime creation test for FSharpAsync * Convert unit awaitables to void awaitables * FSharpAsync<unit> → Task * Task<unit> → Task * ValueTask<unit> → ValueTask * Add tests for unit → void awaitable conversions * Make consistent * Don't need * Handle boxed IResult * Simplify * Add runtime tests back * Use affirmative form --------- Co-authored-by: Safia Abdalla <[email protected]>
- Loading branch information
1 parent
97bea8d
commit 444aa9e
Showing
15 changed files
with
703 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.