awaitResult

suspend fun awaitResult(recordKey: String, resultKey: String): PopResult?(source)

Awaits a result for a record. This suspends until a result is received or returns null if the result key doesn't match the expected key.

Return

The PopResult if one was received with the matching key, null otherwise.

Parameters

recordKey

The unique key identifying the record.

resultKey

The key that was used to tag the result.