addIfNotPresent

abstract suspend fun <T> addIfNotPresent(key: Key<T>, value: T?, timeout: Long?)

Same as addIfNotPresent in ApplicationContext with additional timeout parameter for wait time in case of multiple threads blocking on this method

Parameters

key
value
timeout

in millis