zagens-cli 0.8.3

Zagens headless CLI + HTTP/SSE runtime sidecar (`zagens`, `zagens-runtime` binaries)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! One-shot startup warnings surfaced to the UI via status events.

use crate::core::events::Event;

use super::Engine;

impl Engine {
    pub(super) async fn emit_pending_startup_warnings(&mut self) {
        if let Some(warning) = self.runtime_ext_mut().sandbox_init_warning.take() {
            let _ = self.tx_event.send(Event::status(warning)).await;
        }
    }
}