erase

open override fun <T> erase(key: Key<T>): T?

Erase value associated with key if any

Return

value associate with key or null

Parameters

key

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

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

Return

Parameters

key
timeout

in millis