get

open suspend fun <T> get(key: DependencyKey): T(source)

Retrieves an instance of the dependency associated with the given key from the dependency map.

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