Skip to main content

serve_blocking

Function serve_blocking 

Source
pub async fn serve_blocking(
    deps: Deps,
    port: u16,
    on_ready: impl FnOnce(&str),
) -> Result<()>
Expand description

Bind + serve until the process exits (headless --dashboard). Calls on_ready with the URL once bound so the caller can open the browser.