exists

open override fun <T> exists(key: Key<T>): Boolean

Check if any value or null associated with give key

Return

true if value or null associated with give key otherwise false

Parameters

key

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

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

Return

Parameters

key
timeout

in millis