Package org.apache.groovy.runtime.async
package org.apache.groovy.runtime.async
Runtime support for Groovy's
async/await/defer
language features.
Layout:
AsyncSupport— public entry point used by compiler-generated code and byAwaitableAsyncExecutors— executor/scheduler configurationAwaitCombinators—all/any/first/allSettledjoining algorithmsGroovyPromise— defaultAwaitableimplementationGeneratorBridge— producer/consumer bridge foryield returnDefaultAsyncScope,DefaultAsyncChannel— structured concurrency and CSP channel implementations
-
ClassesClassDescriptionClosure-specific async utilities that have no pure-Java equivalent.Internal runtime support for the
async/await/deferlanguage features.DefaultActor<T>Default implementation ofActor.Default lock-based implementation ofAsyncChannel.Default implementation ofAsyncScopeproviding structured concurrency with configurable failure policy.Default implementation ofPool.Adapter forFlow.Publisher, the JDK's built-in Reactive Streams type.A producer/consumer bridge for async generators (yield return).DefaultAwaitableimplementation backed by aCompletableFuture.ScopedLocal<T>A thread-scoped value holder that abstracts overThreadLocal(JDK < 25) andjava.lang.ScopedValue(JDK 25+), presenting a unified API modelled afterScopedValue.