installIoDispatcher

actual fun installIoDispatcher(dispatcher: CoroutineDispatcher)

Sets the CoroutineDispatcher that ioDispatcher resolves to on the web targets (js, wasmJs).

Call once at startup, before the first ioDispatcher read. A later call replaces the previously installed dispatcher. On JVM, Android, and Apple this is a no-op, because ioDispatcher is already backed by a real thread pool.

Parameters

dispatcher

the dispatcher to back ioDispatcher on web targets.

See also

actual fun installIoDispatcher(dispatcher: CoroutineDispatcher)

Sets the CoroutineDispatcher that ioDispatcher resolves to on the web targets (js, wasmJs).

Call once at startup, before the first ioDispatcher read. A later call replaces the previously installed dispatcher. On JVM, Android, and Apple this is a no-op, because ioDispatcher is already backed by a real thread pool.

Parameters

dispatcher

the dispatcher to back ioDispatcher on web targets.

See also

expect fun installIoDispatcher(dispatcher: CoroutineDispatcher)

Sets the CoroutineDispatcher that ioDispatcher resolves to on the web targets (js, wasmJs).

Call once at startup, before the first ioDispatcher read. A later call replaces the previously installed dispatcher. On JVM, Android, and Apple this is a no-op, because ioDispatcher is already backed by a real thread pool.

Parameters

dispatcher

the dispatcher to back ioDispatcher on web targets.

See also

actual fun installIoDispatcher(dispatcher: CoroutineDispatcher)

Sets the CoroutineDispatcher that ioDispatcher resolves to on the web targets (js, wasmJs).

Call once at startup, before the first ioDispatcher read. A later call replaces the previously installed dispatcher. On JVM, Android, and Apple this is a no-op, because ioDispatcher is already backed by a real thread pool.

Parameters

dispatcher

the dispatcher to back ioDispatcher on web targets.

See also

actual fun installIoDispatcher(dispatcher: CoroutineDispatcher)

Sets the CoroutineDispatcher that ioDispatcher resolves to on the web targets (js, wasmJs).

Call once at startup, before the first ioDispatcher read. A later call replaces the previously installed dispatcher. On JVM, Android, and Apple this is a no-op, because ioDispatcher is already backed by a real thread pool.

Parameters

dispatcher

the dispatcher to back ioDispatcher on web targets.

See also

actual fun installIoDispatcher(dispatcher: CoroutineDispatcher)

Sets the CoroutineDispatcher that ioDispatcher resolves to on the web targets (js, wasmJs).

Call once at startup, before the first ioDispatcher read. A later call replaces the previously installed dispatcher. On JVM, Android, and Apple this is a no-op, because ioDispatcher is already backed by a real thread pool.

Parameters

dispatcher

the dispatcher to back ioDispatcher on web targets.

See also