You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.
We're planning on dropping 4.0 support and go full-blown async/await all over the place.
The Contents property will most likely be a Func<Stream, Task> 😄
Any news on this?.
Would be nice if Process on IResponseProcessor could return a Task instead of Response.
Or that Response.Contents Can take Func<Stream,Task> instead of Action
Proposed solution: In addition to
Action<Stream> Contents
there could beAction<Task<Stream>> AsyncContents
which takes presidence when non-null.An example of code that suffers from the non-presence of this feature: https://github.com/NancyFx/Nancy/blob/master/src/Nancy/Responses/StreamResponse.cs
StreamResponse will block the thread during read and write IO.
The text was updated successfully, but these errors were encountered: