kotlinx.coroutines v0.8-beta Release Notes
-
- ๐
defer
coroutine builder is renamed toasync
. - ๐
lazyDefer
is deprecated,async
has an optionalstart
parameter instead. - ๐
LazyDeferred
interface is deprecated, lazy start functionality is integrated intoJob
interface. launch
has an optionalstart
parameter for lazily started coroutines.- ๐ท
Job.start
andJob.isCompleted
are introduced. Deferred.isCompletedExceptionally
andDeferred.isCancelled
are introduced.- ๐ท
Job.getInactiveCancellationException
is renamed togetCompletionException
. - ๐ท
Job.join
is now a member function. - ๐ Internal
JobSupport
state machine is enhanced to support new (not-started-yet) state. So, lazy coroutines do not need a separate state variable to track their started/not-started (new/active) status. - ๐ท Exception transparency in
Job.cancel
(original cause is rethrown). - ๐ท Clarified possible states for
Job
/CancellableContinuation
/Deferred
in docs. - ๐ Example on async-style functions and links to API reference site from [coroutines guide](docs/topics/coroutines-guide.md).
- ๐