- AbstractChannel<E> - Class in kotlinx.coroutines.channels
-
Abstract send/receive channel. It is a base class for all channel implementations.
- AbstractChannel() - Constructor for class kotlinx.coroutines.channels.AbstractChannel
-
Abstract send/receive channel. It is a base class for all channel implementations.
- AbstractChannelKt - Class in kotlinx.coroutines.channels
-
- AbstractContinuationKt - Class in kotlinx.coroutines
-
- AbstractCoroutine<T> - Class in kotlinx.coroutines
-
Abstract base class for implementation of coroutines in coroutine builders.
- AbstractCoroutine(parentContext, active) - Constructor for class kotlinx.coroutines.AbstractCoroutine
-
Abstract base class for implementation of coroutines in coroutine builders.
- AbstractSendChannel<E> - Class in kotlinx.coroutines.channels
-
Abstract send channel. It is a base class for all send channel implementations.
- AbstractSendChannel() - Constructor for class kotlinx.coroutines.channels.AbstractSendChannel
-
Abstract send channel. It is a base class for all send channel implementations.
- actor(context, capacity, start, parent, onCompletion, block) - Static method in class kotlinx.coroutines.channels.ActorKt
-
Launches new coroutine that is receiving messages from its mailbox channel
and returns a reference to its mailbox channel as a
interface SendChannel
. The resulting
object can be used to
SendChannel.send
messages to this coroutine.
- ActorKt - Class in kotlinx.coroutines.channels
-
- ActorScope<E> - Interface in kotlinx.coroutines.channels
-
- advanceTimeBy(delayTime, unit) - Method in class kotlinx.coroutines.test.TestCoroutineContext
-
Moves the CoroutineContext's virtual clock forward by a specified amount of time.
- advanceTimeTo(targetTime, unit) - Method in class kotlinx.coroutines.test.TestCoroutineContext
-
Moves the CoroutineContext's clock-time to a particular moment in time.
- afterClose(cause) - Method in class kotlinx.coroutines.channels.AbstractSendChannel
-
- any($receiver, p) - Static method in class kotlinx.coroutines.channels.ChannelsKt
-
Returns true
if channel has at least one element.
- ArrayBroadcastChannel<E> - Class in kotlinx.coroutines.channels
-
Broadcast channel with array buffer of a fixed capacity.
Sender suspends only when buffer is full due to one of the receives being slow to consume and
receiver suspends only when buffer is empty.
- ArrayBroadcastChannel(capacity) - Constructor for class kotlinx.coroutines.channels.ArrayBroadcastChannel
-
Broadcast channel with array buffer of a fixed capacity.
Sender suspends only when buffer is full due to one of the receives being slow to consume and
receiver suspends only when buffer is empty.
- ArrayChannel<E> - Class in kotlinx.coroutines.channels
-
Channel with array buffer of a fixed capacity.
Sender suspends only when buffer is fully and receiver suspends only when buffer is empty.
- ArrayChannel(capacity) - Constructor for class kotlinx.coroutines.channels.ArrayChannel
-
Channel with array buffer of a fixed capacity.
Sender suspends only when buffer is fully and receiver suspends only when buffer is empty.
- asContextElement($receiver, value) - Static method in class kotlinx.coroutines.ThreadContextElementKt
-
- asCoroutineDispatcher($receiver) - Static method in class kotlinx.coroutines.ExecutorsKt
-
- asCoroutineDispatcher($receiver) - Static method in class kotlinx.coroutines.ExecutorsKt
-
- asReceiveChannel($receiver, context) - Static method in class kotlinx.coroutines.channels.ChannelsKt
-
Returns a channel to read all element of the
Iterable.
- asReceiveChannel($receiver, context) - Static method in class kotlinx.coroutines.channels.ChannelsKt
-
Returns a channel to read all element of the
Sequence.
- assertAllUnhandledExceptions(message, predicate) - Method in class kotlinx.coroutines.test.TestCoroutineContext
-
This method does nothing if there are no unhandled exceptions or all of them satisfy the given predicate.
Otherwise it throws an
AssertionError with the given message.
- assertAnyUnhandledException(message, predicate) - Method in class kotlinx.coroutines.test.TestCoroutineContext
-
This method does nothing if one or more unhandled exceptions satisfy the given predicate.
Otherwise it throws an
AssertionError with the given message.
- assertExceptions(message, predicate) - Method in class kotlinx.coroutines.test.TestCoroutineContext
-
This method does nothing if the list of unhandled exceptions satisfy the given predicate.
Otherwise it throws an
AssertionError with the given message.
- assertUnhandledException(message, predicate) - Method in class kotlinx.coroutines.test.TestCoroutineContext
-
This method does nothing if there is one unhandled exception that satisfies the given predicate.
Otherwise it throws an
AssertionError with the given message.
- async(context, start, parent, onCompletion, block) - Static method in class kotlinx.coroutines.DeferredKt
-
Creates new coroutine and returns its future result as an implementation of
interface Deferred
.
- attachChild(child) - Method in class kotlinx.coroutines.NonCancellable
-
- await(p) - Method in interface kotlinx.coroutines.Deferred
-
Awaits for completion of this value without blocking a thread and resumes when deferred computation is complete,
returning the resulting value or throwing the corresponding exception if the deferred had completed exceptionally or was cancelled.
- awaitAll(deferreds, p) - Static method in class kotlinx.coroutines.AwaitKt
-
Awaits for completion of given deferred values without blocking a thread and resumes normally with the list of values
when all deferred computations are complete or resumes with the first thrown exception if any of computations
complete exceptionally including cancellation.
- awaitAll($receiver, p) - Static method in class kotlinx.coroutines.AwaitKt
-
Awaits for completion of given deferred values without blocking a thread and resumes normally with the list of values
when all deferred computations are complete or resumes with the first thrown exception if any of computations
complete exceptionally including cancellation.
- AwaitKt - Class in kotlinx.coroutines
-
- cancel(cause) - Method in interface kotlinx.coroutines.CancellableContinuation
-
Cancels this continuation with an optional cancellation cause. The result is true
if this continuation was
cancelled as a result of this invocation and false
otherwise.
- cancel(cause) - Method in class kotlinx.coroutines.channels.AbstractChannel
-
Cancels reception of remaining elements from this channel. This function closes the channel with
the specified cause (unless it was already closed) and removes all buffered sent elements from it.
This function returns true
if the channel was not closed previously, or false
otherwise.
- cancel(cause) - Method in class kotlinx.coroutines.channels.ArrayBroadcastChannel
-
Cancels reception of remaining elements from this channel. This function closes the channel with
the specified cause (unless it was already closed), removes all buffered sent elements from it,
and
ReceiveChannel.cancel
all open subscriptions.
This function returns
true
if the channel was not closed previously, or
false
otherwise.
- cancel(cause) - Method in interface kotlinx.coroutines.channels.BroadcastChannel
-
Cancels reception of remaining elements from this channel. This function closes the channel with
the specified cause (unless it was already closed), removes all buffered sent elements from it,
and
ReceiveChannel.cancel
all open subscriptions.
This function returns
true
if the channel was not closed previously, or
false
otherwise.
- cancel(cause) - Method in class kotlinx.coroutines.channels.ConflatedBroadcastChannel
-
- cancel(cause) - Method in interface kotlinx.coroutines.channels.ReceiveChannel
-
Cancels reception of remaining elements from this channel. This function closes the channel with
the specified cause (unless it was already closed) and removes all buffered sent elements from it.
This function returns true
if the channel was not closed previously, or false
otherwise.
- cancel(cause) - Method in interface kotlinx.coroutines.Job
-
Cancels this job with an optional cancellation cause.
The result is true
if this job was either cancelled as a result of this invocation
or it's being cancelled and given cause was successfully received by the job and will be properly handled, false
otherwise.
- cancel($receiver, cause) - Static method in class kotlinx.coroutines.JobKt
-
Cancels
interface Job
of this context with an optional cancellation cause. The result is
true
if the job was
cancelled as a result of this invocation and
false
if there is no job in the context or if it was already
cancelled or completed. See
Job.cancel
for details.
- cancel(cause) - Method in class kotlinx.coroutines.NonCancellable
-
Always returns false
.
- cancelAllActions() - Method in class kotlinx.coroutines.test.TestCoroutineContext
-
Cancels all not yet triggered actions. Be careful calling this, since it can seriously
mess with your coroutines work. This method should usually be called on tear-down of a
unit test.
- cancelAndJoin($receiver, p) - Static method in class kotlinx.coroutines.JobKt
-
Cancels the job and suspends invoking coroutine until the cancelled job is complete.
- cancelChildren($receiver, cause) - Static method in class kotlinx.coroutines.JobKt
-
Cancels all children of the
interface Job
in this context with an optional cancellation cause.
It does not do anything if there is no job in the context or it has no children.
See Job.cancelChildren for details.
- cancelChildren($receiver, cause) - Static method in class kotlinx.coroutines.JobKt
-
Cancels all
Job.getChildren
jobs of this coroutine with the given cause using
Job.cancel
for all of them. Unlike
Job.cancel
on this job as a whole, the state of this job itself is not affected.
- cancelFutureOnCancellation($receiver, future) - Static method in class kotlinx.coroutines.JobKt
-
Cancels a specified future when this job is cancelled.
This is a shortcut for the following code with slightly more efficient implementation (one fewer object created).
- cancelFutureOnCompletion($receiver, future) - Static method in class kotlinx.coroutines.JobKt
-
Deprecated.
- cancelFutureOnCompletion($receiver, future) - Static method in class kotlinx.coroutines.JobKt
-
Cancels a specified future when this job is cancelled.
This is a shortcut for the following code with slightly more efficient implementation (one fewer object created).
- CancellableContinuation<T> - Interface in kotlinx.coroutines
-
Cancellable continuation. It is
completed when it is resumed or cancelled.
When
CancellableContinuation.cancel
function is explicitly invoked, this continuation immediately resumes with CancellationException or
with the specified cancel cause.
- CancellableContinuationKt - Class in kotlinx.coroutines
-
- CancellableKt - Class in kotlinx.coroutines.intrinsics
-
- Channel<E> - Interface in kotlinx.coroutines.channels
-
- Channel() - Static method in class kotlinx.coroutines.channels.ChannelKt
-
- Channel(capacity) - Static method in class kotlinx.coroutines.channels.ChannelKt
-
Creates a channel with the specified buffer capacity (or without a buffer by default).
- Channel.Factory - Class in kotlinx.coroutines.channels
-
Constants for channel factory function Channel()
.
- ChannelIterator<E> - Interface in kotlinx.coroutines.channels
-
Iterator for
interface ReceiveChannel
. Instances of this interface are
not thread-safe and shall not be used
from concurrent coroutines.
- ChannelKt - Class in kotlinx.coroutines.channels
-
- ChannelsKt - Class in kotlinx.coroutines.channels
-
- cleanupSendQueueOnCancel() - Method in class kotlinx.coroutines.channels.AbstractChannel
-
- cleanupSendQueueOnCancel() - Method in class kotlinx.coroutines.channels.ArrayChannel
-
- close(cause) - Method in class kotlinx.coroutines.channels.AbstractSendChannel
-
Closes this channel with an optional exceptional cause.
This is an idempotent operation -- repeated invocations of this function have no effect and return false
.
Conceptually, its sends a special "close token" over this channel.
- close(cause) - Method in class kotlinx.coroutines.channels.ArrayBroadcastChannel
-
Closes this channel with an optional exceptional cause.
This is an idempotent operation -- repeated invocations of this function have no effect and return false
.
Conceptually, its sends a special "close token" over this channel.
- close(cause) - Method in class kotlinx.coroutines.channels.ConflatedBroadcastChannel
-
Closes this channel with an optional exceptional cause.
This is an idempotent operation -- repeated invocations of this function have no effect and return false
.
Conceptually, its sends a special "close token" over this channel.
- close(cause) - Method in interface kotlinx.coroutines.channels.SendChannel
-
Closes this channel with an optional exceptional cause.
This is an idempotent operation -- repeated invocations of this function have no effect and return false
.
Conceptually, its sends a special "close token" over this channel.
- close() - Method in interface kotlinx.coroutines.channels.SubscriptionReceiveChannel
-
Deprecated.
- close($this) - Static method in class kotlinx.coroutines.channels.SubscriptionReceiveChannel.DefaultImpls
-
Deprecated.
- close() - Method in class kotlinx.coroutines.CommonPool
-
- close() - Method in class kotlinx.coroutines.ThreadPoolDispatcher
-
Closes this dispatcher -- shuts down all threads in this pool and releases resources.
- CLOSED - Static variable in class kotlinx.coroutines.channels.ConflatedBroadcastChannel
-
- ClosedReceiveChannelException - Exception in kotlinx.coroutines.channels
-
- ClosedReceiveChannelException(message) - Constructor for exception kotlinx.coroutines.channels.ClosedReceiveChannelException
-
- ClosedSendChannelException - Exception in kotlinx.coroutines.channels
-
- ClosedSendChannelException(message) - Constructor for exception kotlinx.coroutines.channels.ClosedSendChannelException
-
- CommonPool - Class in kotlinx.coroutines
-
Represents common pool of shared threads as coroutine dispatcher for compute-intensive tasks.
- Companion - Static variable in class kotlinx.coroutines.channels.ConflatedBroadcastChannel
-
Deprecated.
- CompletableDeferred<T> - Interface in kotlinx.coroutines
-
- CompletableDeferred(parent) - Static method in class kotlinx.coroutines.CompletableDeferredKt
-
- CompletableDeferred(value) - Static method in class kotlinx.coroutines.CompletableDeferredKt
-
- CompletableDeferredKt - Class in kotlinx.coroutines
-
- complete(value) - Method in interface kotlinx.coroutines.CompletableDeferred
-
Completes this deferred value with a given value. The result is true
if this deferred was
completed as a result of this invocation and false
otherwise (if it was already completed).
- CompletedExceptionallyKt - Class in kotlinx.coroutines
-
- completeExceptionally(exception) - Method in interface kotlinx.coroutines.CompletableDeferred
-
Completes this deferred value exceptionally with a given exception. The result is true
if this deferred was
completed as a result of this invocation and false
otherwise (if it was already completed).
- CompletionHandler_commonKt - Class in kotlinx.coroutines
-
- CompletionHandlerException - Exception in kotlinx.coroutines
-
This exception gets thrown if an exception is caught while processing CompletionHandler invocation for
interface Job
.
- CompletionHandlerException(message, cause) - Constructor for exception kotlinx.coroutines.CompletionHandlerException
-
This exception gets thrown if an exception is caught while processing CompletionHandler invocation for
interface Job
.
- CompletionHandlerKt - Class in kotlinx.coroutines
-
- component1() - Method in class kotlinx.coroutines.CoroutineName
-
User-defined coroutine name.
- CONFLATED - Static variable in interface kotlinx.coroutines.channels.Channel
-
- CONFLATED - Static variable in class kotlinx.coroutines.channels.Channel.Factory
-
- ConflatedBroadcastChannel<E> - Class in kotlinx.coroutines.channels
-
- ConflatedBroadcastChannel() - Constructor for class kotlinx.coroutines.channels.ConflatedBroadcastChannel
-
- ConflatedBroadcastChannel(value) - Constructor for class kotlinx.coroutines.channels.ConflatedBroadcastChannel
-
Creates an instance of this class that already holds a value.
- ConflatedChannel<E> - Class in kotlinx.coroutines.channels
-
Channel that buffers at most one element and conflates all subsequent send
and offer
invocations,
so that the receiver always gets the most recently sent element.
Back-to-send sent elements are conflated -- only the the most recently sent element is received,
while previously sent elements are lost.
Sender to this channel never suspends and offer always returns true
.
- ConflatedChannel() - Constructor for class kotlinx.coroutines.channels.ConflatedChannel
-
Channel that buffers at most one element and conflates all subsequent send
and offer
invocations,
so that the receiver always gets the most recently sent element.
Back-to-send sent elements are conflated -- only the the most recently sent element is received,
while previously sent elements are lost.
Sender to this channel never suspends and offer always returns true
.
- consume($receiver, block) - Static method in class kotlinx.coroutines.channels.ChannelsKt
-
- consume($receiver, block) - Static method in class kotlinx.coroutines.channels.ChannelsKt
-
Makes sure that the given block consumes all elements from the given channel
by always invoking
ReceiveChannel.cancel
after the execution of the block.
- consumes($receiver) - Static method in class kotlinx.coroutines.channels.ChannelsKt
-
- consumesAll(channels) - Static method in class kotlinx.coroutines.channels.ChannelsKt
-
- copy(name) - Method in class kotlinx.coroutines.CoroutineName
-
User-specified name of coroutine. This name is used in debugging mode.
See newCoroutineContext for the description of coroutine debugging facilities.
- CoroutineContextKt - Class in kotlinx.coroutines
-
- CoroutineDispatcher - Class in kotlinx.coroutines
-
Base class that shall be extended by all coroutine dispatcher implementations.
- CoroutineDispatcher() - Constructor for class kotlinx.coroutines.CoroutineDispatcher
-
Base class that shall be extended by all coroutine dispatcher implementations.
- CoroutineExceptionHandler - Interface in kotlinx.coroutines
-
An optional element on the coroutine context to handle uncaught exceptions.
- CoroutineExceptionHandler(handler) - Static method in class kotlinx.coroutines.CoroutineExceptionHandlerKt
-
- CoroutineExceptionHandler.Key - Class in kotlinx.coroutines
-
- CoroutineExceptionHandlerImplKt - Class in kotlinx.coroutines
-
- CoroutineExceptionHandlerKt - Class in kotlinx.coroutines
-
- CoroutineName - Class in kotlinx.coroutines
-
User-specified name of coroutine. This name is used in debugging mode.
See newCoroutineContext for the description of coroutine debugging facilities.
- CoroutineName(name) - Constructor for class kotlinx.coroutines.CoroutineName
-
User-specified name of coroutine. This name is used in debugging mode.
See newCoroutineContext for the description of coroutine debugging facilities.
- CoroutineName.Key - Class in kotlinx.coroutines
-
- CoroutineScope - Interface in kotlinx.coroutines
-
Receiver interface for generic coroutine builders, so that the code inside coroutine has a convenient
and fast access to its own cancellation status via
CoroutineScope.isActive
.
- CoroutineStart - Enum in kotlinx.coroutines
-
- CoroutineStart() - Constructor for enum kotlinx.coroutines.CoroutineStart
-
- count($receiver, p) - Static method in class kotlinx.coroutines.channels.ChannelsKt
-
Returns the number of elements in this channel.
- DEBUG_PROPERTY_NAME - Static variable in class kotlinx.coroutines.CoroutineContextKt
-
Name of the property that controls coroutine debugging. See newCoroutineContext.
- DEBUG_PROPERTY_VALUE_AUTO - Static variable in class kotlinx.coroutines.CoroutineContextKt
-
Automatic debug configuration value for DEBUG_PROPERTY_NAME. See newCoroutineContext.
- DEBUG_PROPERTY_VALUE_OFF - Static variable in class kotlinx.coroutines.CoroutineContextKt
-
Debug turned on value for DEBUG_PROPERTY_NAME. See newCoroutineContext.
- DEBUG_PROPERTY_VALUE_ON - Static variable in class kotlinx.coroutines.CoroutineContextKt
-
Debug turned on value for DEBUG_PROPERTY_NAME. See newCoroutineContext.
- DebugKt - Class in kotlinx.coroutines
-
- DEFAULT_PARALLELISM_PROPERTY_NAME - Static variable in class kotlinx.coroutines.CommonPool
-
Name of the property that controls default parallelism level of
class CommonPool
.
If the property is not specified,
Runtime.getRuntime().availableProcessors() - 1
will be used instead (or
1
for single-core JVM).
Note that until Java 10, if an application is run within a container,
Runtime.getRuntime().availableProcessors()
is not aware of container constraints and will return the real number of cores.
- DefaultExecutorKt - Class in kotlinx.coroutines
-
- Deferred<T> - Interface in kotlinx.coroutines
-
Deferred value is a non-blocking cancellable future.
- Deferred.DefaultImpls - Class in kotlinx.coroutines
-
Deferred value is a non-blocking cancellable future.
- DeferredKt - Class in kotlinx.coroutines
-
- Delay - Interface in kotlinx.coroutines
-
This dispatcher
feature is implemented by
class CoroutineDispatcher
implementations that natively support
scheduled execution of tasks.
- delay($this, time, unit, p) - Static method in class kotlinx.coroutines.Delay.DefaultImpls
-
Delays coroutine for a given time without blocking a thread and resumes it after a specified time.
This suspending function is cancellable.
If the
interface Job
of the current coroutine is cancelled or completed while this suspending function is waiting, this function
immediately resumes with CancellationException.
- delay(time, unit, p) - Method in interface kotlinx.coroutines.Delay
-
Delays coroutine for a given time without blocking a thread and resumes it after a specified time.
This suspending function is cancellable.
If the
interface Job
of the current coroutine is cancelled or completed while this suspending function is waiting, this function
immediately resumes with CancellationException.
- delay(time, p) - Static method in class kotlinx.coroutines.DelayKt
-
Delays coroutine for a given time without blocking a thread and resumes it after a specified time.
This suspending function is cancellable.
If the
interface Job
of the current coroutine is cancelled or completed while this suspending function is waiting, this function
immediately resumes with CancellationException.
- delay(time, unit, p) - Static method in class kotlinx.coroutines.DelayKt
-
Delays coroutine for a given time without blocking a thread and resumes it after a specified time.
This suspending function is cancellable.
If the
interface Job
of the current coroutine is cancelled or completed while this suspending function is waiting, this function
immediately resumes with CancellationException.
- Delay.DefaultImpls - Class in kotlinx.coroutines
-
This dispatcher
feature is implemented by
class CoroutineDispatcher
implementations that natively support
scheduled execution of tasks.
- DelayKt - Class in kotlinx.coroutines
-
- dispatch(context, block) - Method in class kotlinx.coroutines.CommonPool
-
Dispatches execution of a runnable block onto another thread in the given context.
- dispatch(context, block) - Method in class kotlinx.coroutines.CoroutineDispatcher
-
Dispatches execution of a runnable block onto another thread in the given context.
- dispatch(context, block) - Method in class kotlinx.coroutines.Unconfined
-
Dispatches execution of a runnable block onto another thread in the given context.
- DispatchedKt - Class in kotlinx.coroutines
-
- dispatchYield(context, block) - Method in class kotlinx.coroutines.CoroutineDispatcher
-
Dispatches execution of a runnable block onto another thread in the given context
with a hint for dispatcher that current dispatch is triggered by
YieldKt.yield
call, so execution of this
continuation may be delayed in favor of already dispatched coroutines.
- DisposableHandle - Interface in kotlinx.coroutines
-
A handle to an allocated object that can be disposed to make it eligible for garbage collection.
- dispose() - Method in interface kotlinx.coroutines.DisposableHandle
-
Disposes the corresponding object, making it eligible for garbage collection.
Repeated invocation of this function has no effect.
- dispose() - Method in class kotlinx.coroutines.NonDisposableHandle
-
Does not do anything.
- disposeOnCancellation($receiver, handle) - Static method in class kotlinx.coroutines.CancellableContinuationKt
-
Disposes a specified handle when this continuation is cancelled.
- disposeOnCompletion($receiver, handle) - Static method in class kotlinx.coroutines.CancellableContinuationKt
-
Deprecated.
- disposeOnCompletion($receiver, handle) - Static method in class kotlinx.coroutines.JobKt
-
Disposes a specified handle when this job is complete.
- distinct($receiver) - Static method in class kotlinx.coroutines.channels.ChannelsKt
-
Returns a channel containing only distinct elements from the given channel.
- distinctBy($receiver, context, selector) - Static method in class kotlinx.coroutines.channels.ChannelsKt
-
Returns a channel containing only elements from the given channel
having distinct keys returned by the given selector function.
- drop($receiver, n, context) - Static method in class kotlinx.coroutines.channels.ChannelsKt
-
Returns a channel containing all elements except first n elements.
- dropWhile($receiver, context, predicate) - Static method in class kotlinx.coroutines.channels.ChannelsKt
-
Returns a channel containing all elements except first elements that satisfy the given predicate.
- indexOf($receiver, element, p) - Static method in class kotlinx.coroutines.channels.ChannelsKt
-
Returns first index of element, or -1 if the channel does not contain element.
- initCancellability() - Method in interface kotlinx.coroutines.CancellableContinuation
-
Makes this continuation cancellable. Use it with
holdCancellability
optional parameter to
suspendCancellableCoroutine function. It throws
IllegalStateException if invoked more than once.
- INITIAL_STATE - Static variable in class kotlinx.coroutines.channels.ConflatedBroadcastChannel
-
- INSTANCE - Static variable in class kotlinx.coroutines.CommonPool
-
Represents common pool of shared threads as coroutine dispatcher for compute-intensive tasks.
- INSTANCE - Static variable in class kotlinx.coroutines.NonCancellable
-
- INSTANCE - Static variable in class kotlinx.coroutines.NonDisposableHandle
-
- INSTANCE - Static variable in class kotlinx.coroutines.Unconfined
-
A coroutine dispatcher that is not confined to any specific thread.
It executes initial continuation of the coroutine right here in the current call-frame
and let the coroutine resume in whatever thread that is used by the corresponding suspending function, without
mandating any specific threading policy.
- interceptContinuation(continuation) - Method in class kotlinx.coroutines.CoroutineDispatcher
-
Returns continuation that wraps the original continuation, thus intercepting all resumptions.
- invoke(block, completion) - Method in enum kotlinx.coroutines.CoroutineStart
-
Starts the corresponding block as a coroutine with this coroutine start strategy.
- invoke(block, receiver, completion) - Method in enum kotlinx.coroutines.CoroutineStart
-
Starts the corresponding block with receiver as a coroutine with this coroutine start strategy.
- invoke($this, $receiver, block) - Static method in class kotlinx.coroutines.selects.SelectBuilder.DefaultImpls
-
Registers clause in this select expression with additional parameter nullable parameter of type P
with the null
value for this parameter that selects value of type Q.
- invoke($receiver, block) - Method in interface kotlinx.coroutines.selects.SelectBuilder
-
Registers clause in this select expression without additional parameters that does not select any value.
- invoke($receiver, block) - Method in interface kotlinx.coroutines.selects.SelectBuilder
-
Registers clause in this select expression without additional parameters that selects value of type Q.
- invoke($receiver, param, block) - Method in interface kotlinx.coroutines.selects.SelectBuilder
-
Registers clause in this select expression with additional parameter of type P that selects value of type Q.
- invoke($receiver, block) - Method in interface kotlinx.coroutines.selects.SelectBuilder
-
Registers clause in this select expression with additional parameter nullable parameter of type P
with the null
value for this parameter that selects value of type Q.
- invokeOnCancellation(handler) - Method in interface kotlinx.coroutines.CancellableContinuation
-
Registers handler that is synchronously invoked once on cancellation (both regular and exceptional) of this continuation.
When the continuation is already cancelled, then the handler is immediately invoked
with cancellation exception. Otherwise, the handler will be invoked once on cancellation if this
continuation is cancelled.
- invokeOnClose(handler) - Method in class kotlinx.coroutines.channels.AbstractSendChannel
-
- invokeOnClose(handler) - Method in class kotlinx.coroutines.channels.ConflatedBroadcastChannel
-
- invokeOnClose(handler) - Method in interface kotlinx.coroutines.channels.SendChannel
-
Registers handler which is synchronously invoked once the channel is
SendChannel.close
or receiving side of this channel is
ReceiveChannel.cancel
.
Only one handler can be attached to the channel during channel's lifetime.
Handler is invoked when
SendChannel.isClosedForSend
starts to return
true
.
If channel is already closed, handler is invoked immediately.
- invokeOnCompletion(onCancelling, invokeImmediately, handler) - Method in interface kotlinx.coroutines.CancellableContinuation
-
Deprecated.
- invokeOnCompletion(handler) - Method in interface kotlinx.coroutines.Job
-
Registers handler that is synchronously invoked once on completion of this job.
When job is already complete, then the handler is immediately invoked
with a job's exception or cancellation cause or null
. Otherwise, handler will be invoked once when this
job is complete.
- invokeOnCompletion(onCancelling, invokeImmediately, handler) - Method in interface kotlinx.coroutines.Job
-
Registers handler that is synchronously invoked once on cancellation or completion of this job.
When job is already cancelling or complete, then the handler is immediately invoked
with a job's cancellation cause or null
unless invokeImmediately is set to false.
Otherwise, handler will be invoked once when this job is cancelled or complete.
- invokeOnCompletion(handler) - Method in class kotlinx.coroutines.NonCancellable
-
- invokeOnCompletion(onCancelling_, handler) - Method in class kotlinx.coroutines.NonCancellable
-
- invokeOnCompletion(onCancelling, invokeImmediately, handler) - Method in class kotlinx.coroutines.NonCancellable
-
- invokeOnTimeout($this, time, unit, block) - Static method in class kotlinx.coroutines.Delay.DefaultImpls
-
- invokeOnTimeout(time, unit, block) - Method in interface kotlinx.coroutines.Delay
-
- IO_PARALLELISM_PROPERTY_NAME - Static variable in class kotlinx.coroutines.CoroutineContextKt
-
Name of the property that defines the maximal number of threads that are used by
CoroutineContextKt.getIO
coroutines dispatcher.
- isActive() - Method in interface kotlinx.coroutines.CancellableContinuation
-
Returns true
when this continuation is active -- it has not completed or cancelled yet.
- isActive() - Method in interface kotlinx.coroutines.CoroutineScope
-
Returns true
when this coroutine is still active (has not completed and was not cancelled yet).
- isActive() - Method in interface kotlinx.coroutines.Job
-
Returns
true
when this job is active -- it was already started and has not completed or cancelled yet.
The job that is waiting for its
Job.getChildren
to complete is still considered to be active if it
was not cancelled.
- isActive($receiver) - Static method in class kotlinx.coroutines.JobKt
-
Returns
true
when the
interface Job
of the coroutine in this context is still active
(has not completed and was not cancelled yet).
- isActive() - Method in class kotlinx.coroutines.NonCancellable
-
Always returns true
.
- isBufferAlwaysEmpty() - Method in class kotlinx.coroutines.channels.ArrayChannel
-
- isBufferAlwaysEmpty() - Method in class kotlinx.coroutines.channels.ConflatedChannel
-
- isBufferAlwaysEmpty() - Method in class kotlinx.coroutines.channels.LinkedListChannel
-
- isBufferAlwaysEmpty() - Method in class kotlinx.coroutines.channels.RendezvousChannel
-
- isBufferAlwaysFull() - Method in class kotlinx.coroutines.channels.ArrayBroadcastChannel
-
- isBufferAlwaysFull() - Method in class kotlinx.coroutines.channels.ArrayChannel
-
- isBufferAlwaysFull() - Method in class kotlinx.coroutines.channels.ConflatedChannel
-
- isBufferAlwaysFull() - Method in class kotlinx.coroutines.channels.LinkedListChannel
-
- isBufferAlwaysFull() - Method in class kotlinx.coroutines.channels.RendezvousChannel
-
- isBufferEmpty() - Method in class kotlinx.coroutines.channels.ArrayChannel
-
Returns true
if this channel's buffer is empty.
- isBufferEmpty() - Method in class kotlinx.coroutines.channels.ConflatedChannel
-
Returns true
if this channel's buffer is empty.
- isBufferEmpty() - Method in class kotlinx.coroutines.channels.LinkedListChannel
-
Returns true
if this channel's buffer is empty.
- isBufferEmpty() - Method in class kotlinx.coroutines.channels.RendezvousChannel
-
Returns true
if this channel's buffer is empty.
- isBufferFull() - Method in class kotlinx.coroutines.channels.ArrayBroadcastChannel
-
Returns true
if this channel's buffer is full.
- isBufferFull() - Method in class kotlinx.coroutines.channels.ArrayChannel
-
Returns true
if this channel's buffer is full.
- isBufferFull() - Method in class kotlinx.coroutines.channels.ConflatedChannel
-
Returns true
if this channel's buffer is full.
- isBufferFull() - Method in class kotlinx.coroutines.channels.LinkedListChannel
-
Returns true
if this channel's buffer is full.
- isBufferFull() - Method in class kotlinx.coroutines.channels.RendezvousChannel
-
Returns true
if this channel's buffer is full.
- isCancelled() - Method in interface kotlinx.coroutines.CancellableContinuation
-
- isCancelled() - Method in interface kotlinx.coroutines.Job
-
Returns
true
if this job was
Job.cancel
. In the general case, it does not imply that the
job has already
Job.isCompleted
(it may still be cancelling whatever it was doing).
- isCancelled() - Method in class kotlinx.coroutines.NonCancellable
-
Always returns false
.
- isClosedForReceive() - Method in class kotlinx.coroutines.channels.AbstractChannel
-
- isClosedForReceive() - Method in interface kotlinx.coroutines.channels.ReceiveChannel
-
- isClosedForSend() - Method in class kotlinx.coroutines.channels.AbstractSendChannel
-
- isClosedForSend() - Method in class kotlinx.coroutines.channels.ConflatedBroadcastChannel
-
- isClosedForSend() - Method in interface kotlinx.coroutines.channels.SendChannel
-
- isCompleted() - Method in interface kotlinx.coroutines.CancellableContinuation
-
Returns true
when this continuation has completed for any reason. A continuation
that was cancelled is also considered complete.
- isCompleted() - Method in interface kotlinx.coroutines.Job
-
Returns
true
when this job has completed for any reason. A job that was cancelled and has
finished its execution is also considered complete. Job becomes complete only after
all its
Job.getChildren
complete.
- isCompleted() - Method in class kotlinx.coroutines.NonCancellable
-
Always returns false
.
- isCompletedExceptionally() - Method in interface kotlinx.coroutines.Deferred
-
Returns
true
if computation of this deferred value has
completed exceptionally -- it had
either
failed with exception during computation or was
Job.cancel
.
- isDispatchNeeded(context) - Method in class kotlinx.coroutines.CoroutineDispatcher
-
Returns true
if execution shall be dispatched onto another thread.
The default behaviour for most dispatchers is to return true
.
- isDispatchNeeded(context) - Method in class kotlinx.coroutines.Unconfined
-
Returns true
if execution shall be dispatched onto another thread.
The default behaviour for most dispatchers is to return true
.
- isEmpty() - Method in class kotlinx.coroutines.channels.AbstractChannel
-
- isEmpty() - Method in interface kotlinx.coroutines.channels.ReceiveChannel
-
- isFull() - Method in class kotlinx.coroutines.channels.AbstractSendChannel
-
- isFull() - Method in class kotlinx.coroutines.channels.ConflatedBroadcastChannel
-
- isFull() - Method in interface kotlinx.coroutines.channels.SendChannel
-
- isLazy() - Method in enum kotlinx.coroutines.CoroutineStart
-
Returns true
when LAZY.
- isLocked() - Method in interface kotlinx.coroutines.sync.Mutex
-
Returns true
when this mutex is locked.
- iterator() - Method in class kotlinx.coroutines.channels.AbstractChannel
-
Returns new iterator to receive elements from this channels using
for
loop.
Iteration completes normally when the channel is
AbstractChannel.isClosedForReceive
without cause and
throws the original
SendChannel.close
cause exception if the channel has
failed.
- iterator() - Method in interface kotlinx.coroutines.channels.ReceiveChannel
-
Returns new iterator to receive elements from this channels using
for
loop.
Iteration completes normally when the channel is
ReceiveChannel.isClosedForReceive
without cause and
throws the original
SendChannel.close
cause exception if the channel has
failed.
- offer(element) - Method in class kotlinx.coroutines.channels.AbstractSendChannel
-
- offer(element) - Method in class kotlinx.coroutines.channels.ConflatedBroadcastChannel
-
- offer(element) - Method in interface kotlinx.coroutines.channels.SendChannel
-
Adds element into this queue if it is possible to do so immediately without violating capacity restrictions
and returns
true
. Otherwise, it returns
false
immediately
or throws exception if the channel
SendChannel.isClosedForSend
(see
SendChannel.close
for details).
- offerInternal(element) - Method in class kotlinx.coroutines.channels.ArrayBroadcastChannel
-
Tries to add element to buffer or to queued receiver.
Return type is OFFER_SUCCESS | OFFER_FAILED | Closed
.
- offerInternal(element) - Method in class kotlinx.coroutines.channels.ArrayChannel
-
Tries to add element to buffer or to queued receiver.
Return type is OFFER_SUCCESS | OFFER_FAILED | Closed
.
- offerInternal(element) - Method in class kotlinx.coroutines.channels.ConflatedChannel
-
Tries to add element to buffer or to queued receiver.
Return type is OFFER_SUCCESS | OFFER_FAILED | Closed
.
- offerInternal(element) - Method in class kotlinx.coroutines.channels.LinkedListChannel
-
Tries to add element to buffer or to queued receiver.
Return type is OFFER_SUCCESS | OFFER_FAILED | Closed
.
- offerSelectInternal(element, select) - Method in class kotlinx.coroutines.channels.ArrayBroadcastChannel
-
Tries to add element to buffer or to queued receiver if select statement clause was not selected yet.
Return type is ALREADY_SELECTED | OFFER_SUCCESS | OFFER_FAILED | Closed
.
- offerSelectInternal(element, select) - Method in class kotlinx.coroutines.channels.ArrayChannel
-
Tries to add element to buffer or to queued receiver if select statement clause was not selected yet.
Return type is ALREADY_SELECTED | OFFER_SUCCESS | OFFER_FAILED | Closed
.
- offerSelectInternal(element, select) - Method in class kotlinx.coroutines.channels.ConflatedChannel
-
Tries to add element to buffer or to queued receiver if select statement clause was not selected yet.
Return type is ALREADY_SELECTED | OFFER_SUCCESS | OFFER_FAILED | Closed
.
- offerSelectInternal(element, select) - Method in class kotlinx.coroutines.channels.LinkedListChannel
-
Tries to add element to buffer or to queued receiver if select statement clause was not selected yet.
Return type is ALREADY_SELECTED | OFFER_SUCCESS | OFFER_FAILED | Closed
.
- onCancellation(cause) - Method in class kotlinx.coroutines.AbstractCoroutine
-
This function is invoked once when this coroutine is cancelled or is completed,
similarly to invokeOnCompletion with onCancelling
set to true
.
- onCompleted(value) - Method in class kotlinx.coroutines.AbstractCoroutine
-
This function is invoked once when job is completed normally with the specified value.
- onCompletedExceptionally(exception) - Method in class kotlinx.coroutines.AbstractCoroutine
-
This function is invoked once when job is completed exceptionally with the specified exception.
- onStart() - Method in class kotlinx.coroutines.AbstractCoroutine
-
This function is invoked once when non-active coroutine (constructed with
active
set to `false)
is
AbstractCoroutine.start
.
- onTimeout(time, unit, block) - Method in interface kotlinx.coroutines.selects.SelectBuilder
-
Clause that selects the given block after a specified timeout passes.
If timeout is negative or zero, block is selected immediately.
- openSubscription() - Method in class kotlinx.coroutines.channels.ArrayBroadcastChannel
-
- openSubscription() - Method in interface kotlinx.coroutines.channels.BroadcastChannel
-
- openSubscription() - Method in class kotlinx.coroutines.channels.ConflatedBroadcastChannel
-
- ScheduledKt - Class in kotlinx.coroutines
-
- scheduleResumeAfterDelay(time, unit, continuation) - Method in interface kotlinx.coroutines.Delay
-
Schedules resume of a specified continuation after a specified delay time.
- SelectBuilder<R> - Interface in kotlinx.coroutines.selects
-
Scope for select invocation.
- SelectBuilder.DefaultImpls - Class in kotlinx.coroutines.selects
-
Scope for select invocation.
- SelectClause0 - Interface in kotlinx.coroutines.selects
-
Clause for select expression without additional parameters that does not select any value.
- SelectClause1<Q> - Interface in kotlinx.coroutines.selects
-
Clause for select expression without additional parameters that selects value of type Q.
- SelectClause2<P,Q> - Interface in kotlinx.coroutines.selects
-
Clause for select expression with additional parameter of type P that selects value of type Q.
- SelectKt - Class in kotlinx.coroutines.selects
-
- SelectUnbiasedKt - Class in kotlinx.coroutines.selects
-
- send(element, p) - Method in class kotlinx.coroutines.channels.AbstractSendChannel
-
- send(element, p) - Method in class kotlinx.coroutines.channels.ConflatedBroadcastChannel
-
- send(element, p) - Method in interface kotlinx.coroutines.channels.SendChannel
-
- sendBlocking($receiver, element) - Static method in class kotlinx.coroutines.channels.ChannelsKt
-
- SendChannel<E> - Interface in kotlinx.coroutines.channels
-
- single($receiver, p) - Static method in class kotlinx.coroutines.channels.ChannelsKt
-
Returns the single element, or throws an exception if the channel is empty or has more than one element.
- singleOrNull($receiver, p) - Static method in class kotlinx.coroutines.channels.ChannelsKt
-
Returns single element, or null
if the channel is empty or has more than one element.
- start(start, block) - Method in class kotlinx.coroutines.AbstractCoroutine
-
Starts this coroutine with the given code block and start strategy.
This function shall be invoked at most once on this coroutine.
- start(start, receiver, block) - Method in class kotlinx.coroutines.AbstractCoroutine
-
Starts this coroutine with the given code block and start strategy.
This function shall be invoked at most once on this coroutine.
- start() - Method in interface kotlinx.coroutines.Job
-
Starts coroutine related to this job (if any) if it was not started yet.
The result true
if this invocation actually started coroutine or false
if it was already started or completed.
- start() - Method in class kotlinx.coroutines.NonCancellable
-
Always returns false
.
- startCoroutineCancellable($receiver, completion) - Static method in class kotlinx.coroutines.intrinsics.CancellableKt
-
Use this function to start coroutine in a cancellable way, so that it can be cancelled
while waiting to be dispatched.
- startCoroutineCancellable($receiver, receiver, completion) - Static method in class kotlinx.coroutines.intrinsics.CancellableKt
-
Use this function to start coroutine in a cancellable way, so that it can be cancelled
while waiting to be dispatched.
- startCoroutineUndispatched($receiver, completion) - Static method in class kotlinx.coroutines.intrinsics.UndispatchedKt
-
Use this function to start new coroutine in CoroutineStart.UNDISPATCHED mode —
immediately execute coroutine in the current thread until next suspension.
It does not use
ContinuationInterceptor, but updates the context of the current thread for the new coroutine.
- startCoroutineUndispatched($receiver, receiver, completion) - Static method in class kotlinx.coroutines.intrinsics.UndispatchedKt
-
Use this function to start new coroutine in CoroutineStart.UNDISPATCHED mode —
immediately execute coroutine in the current thread until next suspension.
It does not use
ContinuationInterceptor, but updates the context of the current thread for the new coroutine.
- startCoroutineUnintercepted($receiver, completion) - Static method in class kotlinx.coroutines.intrinsics.UndispatchedKt
-
Use this function to restart coroutine directly from inside of suspendCoroutine,
when the code is already in the context of this coroutine.
It does not use
ContinuationInterceptor and does not update context of the current thread.
- startCoroutineUnintercepted($receiver, receiver, completion) - Static method in class kotlinx.coroutines.intrinsics.UndispatchedKt
-
Use this function to restart coroutine directly from inside of suspendCoroutine,
when the code is already in the context of this coroutine.
It does not use
ContinuationInterceptor and does not update context of the current thread.
- startUndispatchedOrReturn($receiver, block) - Static method in class kotlinx.coroutines.intrinsics.UndispatchedKt
-
Starts this coroutine with the given code block in the same context and returns result when it
completes without suspension.
This function shall be invoked at most once on this coroutine.
- startUndispatchedOrReturn($receiver, receiver, block) - Static method in class kotlinx.coroutines.intrinsics.UndispatchedKt
-
Starts this coroutine with the given code block in the same context and returns result when it
completes without suspension.
This function shall be invoked at most once on this coroutine.
- SubscriptionReceiveChannel<T> - Interface in kotlinx.coroutines.channels
-
Deprecated.
- SubscriptionReceiveChannel.DefaultImpls - Class in kotlinx.coroutines.channels
-
Deprecated.