Function render_builder

Source
pub fn render_builder<Effect, Event>() -> NotificationBuilder<Effect, Event, impl Future<Output = ()>>
where Effect: From<Request<RenderOperation>> + Send + 'static, Event: Send + 'static,
Expand description

Signal to the shell that the UI should be redrawn. Returns a NotificationBuilder.

ยงExamples:

To use in a sync context:

let command: Command<Effect, Event> =
    render_builder().into(); // or use `render_command()`

To use in an async context:

render_builder().into_future(ctx).await;