Skip to main content

run_loop

Function run_loop 

Source
pub async fn run_loop<B, S>(
    terminal: &mut Terminal<B>,
    events: S,
    app: DashboardApp,
    ctx: LoopContext,
) -> Result<()>
where B: Backend, S: Stream<Item = Result<Event>> + Unpin,
Expand description

The dashboard loop over any backend and any source of input events.

Returns when the user quits or events ends. The caller owns the terminal and whatever it took to set it up.