open fun putAsync(key: K, value: V?): AsyncCompletion
(source)
Updates the value that corresponds to the specified key, creating the value if one does not already exist.
If the value is null, deletes the value that corresponds to the specified key, if such a value exists.
key
- The key that corresponds to the value to be updated.
value
- The value to associate the key with.
Return
A completion that will complete when the value has been put into the trie.
open fun putAsync(dispatcher: CoroutineDispatcher, key: K, value: V?): AsyncCompletion
(source)
Updates the value that corresponds to the specified key, creating the value if one does not already exist.
If the value is null, deletes the value that corresponds to the specified key, if such a value exists.
key
- The key that corresponds to the value to be updated.
value
- The value to associate the key with.
dispatcher
- The co-routine dispatcher for asynchronous tasks.
Return
A completion that will complete when the value has been put into the trie.