# Package org.apache.groovy.runtime.async

package org.apache.groovy.runtime.async
Runtime support for async/await expressions. Provides continuation-passing style transformation and execution framework.

- Classes
  Class
  Description
  AsyncClosureUtils
  Closure-specific async utilities that have no pure-Java equivalent.
  AsyncSupport
  Internal runtime support for the `async`/`await`/`defer` language features.
  DefaultActor<T>
  Default implementation of `Actor` using a dedicated thread and a `LinkedBlockingQueue` for message processing.
  DefaultAsyncChannel<T>
  Default lock-based implementation of `AsyncChannel`.
  DefaultAsyncScope
  Default implementation of `AsyncScope` providing structured concurrency with configurable failure policy.
  DefaultPool
  Default implementation of `Pool`.
  FlowPublisherAdapter
  Adapter for `Flow.Publisher`, the JDK's built-in Reactive Streams type.
  GeneratorBridge<T>
  A producer/consumer bridge for async generators (`yield return`).
  GroovyPromise<T>
  Default `Awaitable` implementation backed by a `CompletableFuture`.
  ScopedLocal<T>
  A thread-scoped value holder that abstracts over `ThreadLocal` (JDK < 25) and `java.lang.ScopedValue` (JDK 25+), presenting a unified API modelled after `ScopedValue`.
  ScopedLocal.Carrier
  An immutable set of scoped-local bindings that can be applied atomically for the duration of a `Runnable` or `Supplier`.