Skip to content

function onProviderConstructed view code

onProviderConstructed(
    listener: (provider: Provider<unknown>) -> ()
): () -> ()

Called just before a constructing provider is returned. The listener callback receives the provider that is constructed.

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

Parameters

listener: (provider: Provider) -> ()

Fired just before a constructing provider is returned. The listener callback receives the provider that is constructed.

Returns

() -> ()

A callback that when called removes the listener.