create_delayed_stream

Function create_delayed_stream 

Source
pub fn create_delayed_stream(
    text: impl Into<String>,
    delay: Duration,
) -> StreamingResponse
Expand description

Create a stream that emits tokens with a delay (for demo purposes)