StressScope

class StressScope : CoroutineScope(source)

One iteration of Stress.run: a CoroutineScope whose coroutines the iteration waits for, the iteration's number, and a background scope for coroutines that outlive the body, such as those of an endpoint, like runTest's backgroundScope.

Properties

Link copied to clipboard
val background: CoroutineScope

Cancelled, and joined, when the iteration ends; a failure in it does not cancel the iteration.

Link copied to clipboard
Link copied to clipboard

The iteration, counted from 0.