withSingleThreadedDispatcher

@ExperimentalCoroutinesApi
actual suspend fun withSingleThreadedDispatcher(action: suspend (dispatcher: CoroutineDispatcher) -> Unit)(source)
expect suspend fun withSingleThreadedDispatcher(action: suspend (dispatcher: CoroutineDispatcher) -> Unit)(source)

Executes action, providing it with a single-threaded CoroutineDispatcher.

The dispatcher provided is guaranteed not to leak resources after use. It is not guaranteed to be usable when this function completes.

Use this utility function for testing special cases.

actual suspend fun withSingleThreadedDispatcher(action: suspend (dispatcher: CoroutineDispatcher) -> Unit)(source)
actual suspend fun withSingleThreadedDispatcher(action: suspend (dispatcher: CoroutineDispatcher) -> Unit)(source)
actual suspend fun withSingleThreadedDispatcher(action: suspend (dispatcher: CoroutineDispatcher) -> Unit)(source)
actual suspend fun withSingleThreadedDispatcher(action: suspend (dispatcher: CoroutineDispatcher) -> Unit)(source)