of

Returns a provider whose four dispatchers are all dispatcher. Intended for tests: DispatcherProvider.of(StandardTestDispatcher(testScheduler)).

Rules: DISPATCH_005, TEST_005. See docs/BEST_PRACTICES_COROUTINES.md.

Return

an immutable provider that always returns dispatcher.

Parameters

dispatcher

the dispatcher returned for main, io, default and unconfined.