Skip to content

function onRootStarted view code

onRootStarted(
    listener: (root: Root) -> ()
): () -> ()

Called just before a root finishes starting. The listener callback receives the root that is starting.

Listener callbacks are expected to be non-yielding and infallible.

Parameters

listener: (root: Root) -> ()

Fired just before a root finishes starting. The listener callback receives the root that is starting.

Returns

() -> ()

A callback that when called removes the listener.