A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/index.html below:

Website Navigation


coroutines-core | kotlinx.coroutines – Kotlin Programming Language

Core primitives to work with coroutines.

Coroutine builder functions:

Coroutine dispatchers implementing CoroutineDispatcher:

More context elements:

Synchronization primitives for coroutines:

Top-level suspending functions:

Name Description delay Non-blocking sleep yield Yields thread in single-threaded dispatchers withContext Switches to a different context withTimeout Set execution time-limit with exception on timeout withTimeoutOrNull Set execution time-limit will null result on timeout awaitAll Awaits for successful completion of all given jobs or exceptional completion of any joinAll Joins on all given jobs

Cancellation support for user-defined suspending functions is available with suspendCancellableCoroutine helper function. The NonCancellable job object is provided to suppress cancellation inside the withContext(NonCancellable) {...} block of code.

Ways to construct asynchronous streams of values:

Name Type Description flow cold Runs a generator-style block of code that emits values flowOf cold Emits the values passed as arguments channelFlow cold Runs the given code, providing a channel sending to which means emitting from the flow callbackFlow cold Allows transforming a callback-based API into a flow ReceiveChannel.consumeAsFlow hot Transforms a channel into a flow, emitting all of the received values to a single subscriber ReceiveChannel.receiveAsFlow hot Transforms a channel into a flow, distributing the received values among its subscribers MutableSharedFlow hot Allows emitting each value to arbitrarily many subscribers at once MutableStateFlow hot Represents mutable state as a flow

A cold stream is some process of generating values, and this process is performed separately for each subscriber. A hot stream uses the same source of values independently of whether there are subscribers.

A select expression waits for the result of multiple suspending functions simultaneously:

Core primitives to work with coroutines.

Coroutine builder functions:

Coroutine dispatchers implementing CoroutineDispatcher:

More context elements:

Synchronization primitives for coroutines:

Top-level suspending functions:

Name Description delay Non-blocking sleep yield Yields thread in single-threaded dispatchers withContext Switches to a different context withTimeout Set execution time-limit with exception on timeout withTimeoutOrNull Set execution time-limit will null result on timeout awaitAll Awaits for successful completion of all given jobs or exceptional completion of any joinAll Joins on all given jobs

Cancellation support for user-defined suspending functions is available with suspendCancellableCoroutine helper function. The NonCancellable job object is provided to suppress cancellation inside the withContext(NonCancellable) {...} block of code.

Ways to construct asynchronous streams of values:

Name Type Description flow cold Runs a generator-style block of code that emits values flowOf cold Emits the values passed as arguments channelFlow cold Runs the given code, providing a channel sending to which means emitting from the flow callbackFlow cold Allows transforming a callback-based API into a flow ReceiveChannel.consumeAsFlow hot Transforms a channel into a flow, emitting all of the received values to a single subscriber ReceiveChannel.receiveAsFlow hot Transforms a channel into a flow, distributing the received values among its subscribers MutableSharedFlow hot Allows emitting each value to arbitrarily many subscribers at once MutableStateFlow hot Represents mutable state as a flow

A cold stream is some process of generating values, and this process is performed separately for each subscriber. A hot stream uses the same source of values independently of whether there are subscribers.

A select expression waits for the result of multiple suspending functions simultaneously:

Core primitives to work with coroutines.

Coroutine builder functions:

Coroutine dispatchers implementing CoroutineDispatcher:

More context elements:

Synchronization primitives for coroutines:

Top-level suspending functions:

Name Description delay Non-blocking sleep yield Yields thread in single-threaded dispatchers withContext Switches to a different context withTimeout Set execution time-limit with exception on timeout withTimeoutOrNull Set execution time-limit will null result on timeout awaitAll Awaits for successful completion of all given jobs or exceptional completion of any joinAll Joins on all given jobs

Cancellation support for user-defined suspending functions is available with suspendCancellableCoroutine helper function. The NonCancellable job object is provided to suppress cancellation inside the withContext(NonCancellable) {...} block of code.

Ways to construct asynchronous streams of values:

Name Type Description flow cold Runs a generator-style block of code that emits values flowOf cold Emits the values passed as arguments channelFlow cold Runs the given code, providing a channel sending to which means emitting from the flow callbackFlow cold Allows transforming a callback-based API into a flow ReceiveChannel.consumeAsFlow hot Transforms a channel into a flow, emitting all of the received values to a single subscriber ReceiveChannel.receiveAsFlow hot Transforms a channel into a flow, distributing the received values among its subscribers MutableSharedFlow hot Allows emitting each value to arbitrarily many subscribers at once MutableStateFlow hot Represents mutable state as a flow

A cold stream is some process of generating values, and this process is performed separately for each subscriber. A hot stream uses the same source of values independently of whether there are subscribers.

A select expression waits for the result of multiple suspending functions simultaneously:

Core primitives to work with coroutines.

Coroutine builder functions:

Coroutine dispatchers implementing CoroutineDispatcher:

More context elements:

Synchronization primitives for coroutines:

Top-level suspending functions:

Name Description delay Non-blocking sleep yield Yields thread in single-threaded dispatchers withContext Switches to a different context withTimeout Set execution time-limit with exception on timeout withTimeoutOrNull Set execution time-limit will null result on timeout awaitAll Awaits for successful completion of all given jobs or exceptional completion of any joinAll Joins on all given jobs

Cancellation support for user-defined suspending functions is available with suspendCancellableCoroutine helper function. The NonCancellable job object is provided to suppress cancellation inside the withContext(NonCancellable) {...} block of code.

Ways to construct asynchronous streams of values:

Name Type Description flow cold Runs a generator-style block of code that emits values flowOf cold Emits the values passed as arguments channelFlow cold Runs the given code, providing a channel sending to which means emitting from the flow callbackFlow cold Allows transforming a callback-based API into a flow ReceiveChannel.consumeAsFlow hot Transforms a channel into a flow, emitting all of the received values to a single subscriber ReceiveChannel.receiveAsFlow hot Transforms a channel into a flow, distributing the received values among its subscribers MutableSharedFlow hot Allows emitting each value to arbitrarily many subscribers at once MutableStateFlow hot Represents mutable state as a flow

A cold stream is some process of generating values, and this process is performed separately for each subscriber. A hot stream uses the same source of values independently of whether there are subscribers.

A select expression waits for the result of multiple suspending functions simultaneously:

Core primitives to work with coroutines.

Coroutine builder functions:

Coroutine dispatchers implementing CoroutineDispatcher:

More context elements:

Synchronization primitives for coroutines:

Top-level suspending functions:

Name Description delay Non-blocking sleep yield Yields thread in single-threaded dispatchers withContext Switches to a different context withTimeout Set execution time-limit with exception on timeout withTimeoutOrNull Set execution time-limit will null result on timeout awaitAll Awaits for successful completion of all given jobs or exceptional completion of any joinAll Joins on all given jobs

Cancellation support for user-defined suspending functions is available with suspendCancellableCoroutine helper function. The NonCancellable job object is provided to suppress cancellation inside the withContext(NonCancellable) {...} block of code.

Ways to construct asynchronous streams of values:

Name Type Description flow cold Runs a generator-style block of code that emits values flowOf cold Emits the values passed as arguments channelFlow cold Runs the given code, providing a channel sending to which means emitting from the flow callbackFlow cold Allows transforming a callback-based API into a flow ReceiveChannel.consumeAsFlow hot Transforms a channel into a flow, emitting all of the received values to a single subscriber ReceiveChannel.receiveAsFlow hot Transforms a channel into a flow, distributing the received values among its subscribers MutableSharedFlow hot Allows emitting each value to arbitrarily many subscribers at once MutableStateFlow hot Represents mutable state as a flow

A cold stream is some process of generating values, and this process is performed separately for each subscriber. A hot stream uses the same source of values independently of whether there are subscribers.

A select expression waits for the result of multiple suspending functions simultaneously:

Core primitives to work with coroutines.

Coroutine builder functions:

Coroutine dispatchers implementing CoroutineDispatcher:

More context elements:

Synchronization primitives for coroutines:

Top-level suspending functions:

Name Description delay Non-blocking sleep yield Yields thread in single-threaded dispatchers withContext Switches to a different context withTimeout Set execution time-limit with exception on timeout withTimeoutOrNull Set execution time-limit will null result on timeout awaitAll Awaits for successful completion of all given jobs or exceptional completion of any joinAll Joins on all given jobs

Cancellation support for user-defined suspending functions is available with suspendCancellableCoroutine helper function. The NonCancellable job object is provided to suppress cancellation inside the withContext(NonCancellable) {...} block of code.

Ways to construct asynchronous streams of values:

Name Type Description flow cold Runs a generator-style block of code that emits values flowOf cold Emits the values passed as arguments channelFlow cold Runs the given code, providing a channel sending to which means emitting from the flow callbackFlow cold Allows transforming a callback-based API into a flow ReceiveChannel.consumeAsFlow hot Transforms a channel into a flow, emitting all of the received values to a single subscriber ReceiveChannel.receiveAsFlow hot Transforms a channel into a flow, distributing the received values among its subscribers MutableSharedFlow hot Allows emitting each value to arbitrarily many subscribers at once MutableStateFlow hot Represents mutable state as a flow

A cold stream is some process of generating values, and this process is performed separately for each subscriber. A hot stream uses the same source of values independently of whether there are subscribers.

A select expression waits for the result of multiple suspending functions simultaneously:

Core primitives to work with coroutines.

Coroutine builder functions:

Coroutine dispatchers implementing CoroutineDispatcher:

More context elements:

Synchronization primitives for coroutines:

Top-level suspending functions:

Name Description delay Non-blocking sleep yield Yields thread in single-threaded dispatchers withContext Switches to a different context withTimeout Set execution time-limit with exception on timeout withTimeoutOrNull Set execution time-limit will null result on timeout awaitAll Awaits for successful completion of all given jobs or exceptional completion of any joinAll Joins on all given jobs

Cancellation support for user-defined suspending functions is available with suspendCancellableCoroutine helper function. The NonCancellable job object is provided to suppress cancellation inside the withContext(NonCancellable) {...} block of code.

Ways to construct asynchronous streams of values:

Name Type Description flow cold Runs a generator-style block of code that emits values flowOf cold Emits the values passed as arguments channelFlow cold Runs the given code, providing a channel sending to which means emitting from the flow callbackFlow cold Allows transforming a callback-based API into a flow ReceiveChannel.consumeAsFlow hot Transforms a channel into a flow, emitting all of the received values to a single subscriber ReceiveChannel.receiveAsFlow hot Transforms a channel into a flow, distributing the received values among its subscribers MutableSharedFlow hot Allows emitting each value to arbitrarily many subscribers at once MutableStateFlow hot Represents mutable state as a flow

A cold stream is some process of generating values, and this process is performed separately for each subscriber. A hot stream uses the same source of values independently of whether there are subscribers.

A select expression waits for the result of multiple suspending functions simultaneously:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4