Trace Outcome
How a traced block ended.
Example:
when (finished.outcome) {
TraceOutcome.Completed -> ok()
is TraceOutcome.Threw -> report(finished.outcome.error)
}Content copied to clipboard
Requires opting in to ExperimentalStructuredCoroutines.