tuweni / org.apache.tuweni.kv / KeyValueStore / getAsync

getAsync

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

Retrieves data from the store.

Parameters

key - The key for the content.

Return
An AsyncResult that will complete with the stored content, or an empty optional if no content was available.

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

Retrieves data from the store.

Parameters

key - The key for the content.

dispatcher - The co-routine dispatcher for asynchronous tasks.

Return
An AsyncResult that will complete with the stored content, or an empty optional if no content was available.