Function cosmic::iced_runtime::window::run_with_handle

source ยท
pub fn run_with_handle<T>(
    id: Id,
    f: impl FnOnce(WindowHandle<'_>) -> T + Send + 'static,
) -> Task<T>
where T: Send + 'static,
Expand description

Runs the given callback with the native window handle for the window with the given id.

Note that if the window closes before this call is processed the callback will not be run.