WorkerTester
Properties
Link copied to clipboard
Access the TestCoroutineScheduler of the kotlinx.coroutines.test.TestScope running the Worker's test.
Functions
Link copied to clipboard
Suspends until the worker emits an output or finishes.
Link copied to clipboard
Throws an AssertionError if an output, error, or completion has been emitted since the last call to nextOutput.
Link copied to clipboard
Throws an AssertionError immediately if the worker is finished.
Link copied to clipboard
Cancels the worker and suspends until it's finished cancelling (joined).
Link copied to clipboard
Suspends until the worker throws an exception, then returns it.
Link copied to clipboard
Suspends until the worker emits its next value, then returns it.