awaitResult

abstract suspend fun awaitResult(key: String): PopResult?(source)

Awaits a PopResult produced by the record that previously sat on top of the stack above this one. Returns null if no result was produced.

Parameters

key

The key that was used to tag the result. This ensures that only the caller that requested a result when pushing the previous record can receive it.