singleThreadDispatcher

actual fun singleThreadDispatcher(name: String): CloseableCoroutineDispatcher

Creates a coroutine execution context using a single thread.

NOTE: The resulting CloseableCoroutineDispatcher owns native resources (its thread). Resources are reclaimed by CloseableCoroutineDispatcher.close.

Parameters

name

The name of the thread to be created.

expect fun singleThreadDispatcher(name: String): CloseableCoroutineDispatcher

Creates a coroutine execution context using a single thread.

NOTE: The resulting CloseableCoroutineDispatcher owns native resources (its thread). Resources are reclaimed by CloseableCoroutineDispatcher.close.

Parameters

name

The name of the thread to be created.

actual fun singleThreadDispatcher(name: String): CloseableCoroutineDispatcher

Creates a coroutine execution context using a single thread.

NOTE: The resulting CloseableCoroutineDispatcher owns native resources (its thread). Resources are reclaimed by CloseableCoroutineDispatcher.close.

Parameters

name

The name of the thread to be created.

actual fun singleThreadDispatcher(name: String): CloseableCoroutineDispatcher

Creates a coroutine execution context using a single thread. Since JavaScript does not have threading support, this will just return Dispatchers.Default

Parameters

name

The name of the thread to be created.

actual fun singleThreadDispatcher(name: String): CloseableCoroutineDispatcher

Creates a coroutine execution context using a single thread.

NOTE: The resulting CloseableCoroutineDispatcher owns native resources (its thread). Resources are reclaimed by CloseableCoroutineDispatcher.close.

Parameters

name

The name of the thread to be created.