getBlocking

Get an item from the dependency map synchronously.

Unavailable on WASM / JS targets.

Report a problem

Return

the instance of the dependency associated with the given key

Parameters

key

the unique key that identifies the dependency to retrieve

Throws

if no dependency is associated with the given key

actual fun <T> <Error class: unknown class>.getBlocking(key: <Error class: unknown class>): T(source)

Blocking is unavailable for other platforms, so we instead attempt to get the completed value.

If the dependency is not ready, MissingDependencyException is thrown.

Report a problem