get

suspend fun get(key: Any = Unit, block: suspend () -> T): T(source)

Executes block or awaits an existing in-flight execution sharing the same key.

Parameters

key

Request key to distinguish distinct concurrent operations. Defaults to Unit.

block

The suspending work to execute.