Skip to main content

new

Function new 

Source
pub fn new() -> (SuspenseContext, SuspendedResponse)
Expand description

Creates a new SuspenseContext and SuspendedResponse. The context is for suspending futures, and the response turns into an output stream.