-
Notifications
You must be signed in to change notification settings - Fork 25.3k
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
F# sample, Async<T>
as an awaitable type
#31149
Comments
@brianrourkeboll would you be able to create the samples we can show in the docs? |
@Rick-Anderson Do you mean something like this? Are there existing C# samples focusing on Updated treatment of
|
Minimal endpoints support the following types of return values: | |
1. `string` - This includes `Task<string>` and `ValueTask<string>`. | |
1. `T` (Any other type) - This includes `Task<T>` and `ValueTask<T>`. | |
1. `IResult` based - This includes `Task<IResult>` and `ValueTask<IResult>`. |
Minimal endpoints support the following types of return values:
- 1. `string` - This includes `Task<string>` and `ValueTask<string>`.
- 1. `T` (Any other type) - This includes `Task<T>` and `ValueTask<T>`.
- 1. `IResult` based - This includes `Task<IResult>` and `ValueTask<IResult>`.
+ 1. `string` - This includes `Task<string>`, `ValueTask<string>`, and `Async<string>` (in F#).
+ 1. `T` (Any other type) - This includes `Task<T>`, `ValueTask<T>`, and `Async<T>` (in F#).
+ 1. `IResult` based - This includes `Task<IResult>`, `ValueTask<IResult>`, and `Async<IResult>` (in F#).
Create sample here
See #31140
The text was updated successfully, but these errors were encountered: