Skip to main content

serve_bridged_with_shutdown_armed

Function serve_bridged_with_shutdown_armed 

Source
pub async fn serve_bridged_with_shutdown_armed(
    transport: &TransportConfig,
    processor: Arc<dyn IrohRequestProcessor>,
    signing_key: SigningKey,
    shutdown: Arc<Notify>,
    on_ready: Option<Sender<()>>,
    shutdown_armed: Option<Sender<()>>,
) -> Result<()>
Expand description

Variant of serve_bridged that acknowledges after the shutdown waiter is registered, before startup readiness is signalled. This closes the window where an owner can notify shutdown after readiness but before the helper has begun waiting on the shared [Notify].