Please call `runTest`, which automatically performs the cleanup, instead of using this function.

Called after the test completes.

For backward compatibility, if the CoroutineExceptionHandler is an UncaughtExceptionCaptor, its TestCoroutineExceptionHandler.cleanupTestCoroutines behavior is performed. Likewise, if the ContinuationInterceptor is a DelayController, its DelayController.cleanupTestCoroutines is called.


the first uncaught exception, if there are any uncaught exceptions.

if any pending tasks are active.

if called more than once.