tuweni / org.apache.tuweni.trie / MerkleTrie / getAsync

getAsync

open fun getAsync(key: K): AsyncResult<V?> (source)

Returns the value that corresponds to the specified key, or an empty byte array if no such value exists.

Parameters

key - The key of the value to be returned.

Return
A value that corresponds to the specified key, or {@code null} if no such value exists.

open fun getAsync(dispatcher: CoroutineDispatcher, key: K): AsyncResult<V?> (source)

Returns the value that corresponds to the specified key, or an empty byte array if no such value exists.

Parameters

key - The key of the value to be returned.

dispatcher - The co-routine dispatcher for asynchronous tasks.

Return
A value that corresponds to the specified key, or {@code null} if no such value exists.