When should the AppFunc return the task?

59 views
Skip to first unread message

Alebo

unread,
May 19, 2013, 8:36:56 AM5/19/13
to net-http-a...@googlegroups.com
In section 3.1. Application Delegate the specification says:

"An application delegate takes the 
IDictionary<string, object> environment and returns a Task when it has finished processing."

What exactly does "finished processing" mean here? At which point should the task be returned? My understanding by reading section 3.4. is that the task should be returned as early as possible. Is that correct? Or should it be returned when all the work is done and the application does not write to the response stream anymore?

Alex

Mark Rendle

unread,
May 19, 2013, 9:15:49 AM5/19/13
to net-http-a...@googlegroups.com
The Task may be returned at any point, but should only complete when writing to the response stream is complete.

Mark Rendle
Founder & CEO
Oort Corporation
Makers of Zudio


--
You received this message because you are subscribed to the Google Groups ".NET HTTP Abstractions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to net-http-abstrac...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages