add

open override fun <T> add(key: Key<T>, value: T?)

Add value for given key.

Parameters

key
value

open suspend override fun <T> add(key: Key<T>, value: T?, timeout: Long?)

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

Parameters

key
value
timeout

in millis