Package groovy.concurrent


package groovy.concurrent
Structured concurrency abstractions for asynchronous and parallel programming.

Provides high-level concurrency primitives: Actor (message-passing), AsyncScope (structured concurrency), Pool (thread management), and ParallelScope (combined async+parallel). Supports virtual threads (JDK 21+) and fail-fast exception handling.

  • Class
    Description
    A lightweight message-passing actor for concurrent state management.
    A thread-safe mutable-value container inspired by Clojure's agents and GPars' Agent.
    An asynchronous channel for inter-task communication with optional buffering.
    A structured concurrency scope that ensures all child tasks complete (or are cancelled) before the scope exits.
    Core abstraction for asynchronous computations in Groovy.
    Service Provider Interface (SPI) for adapting third-party asynchronous types to Groovy's Awaitable abstraction and to iterables for for await loops.
    Central registry for AwaitableAdapter instances.
    Represents the outcome of an asynchronous computation that may have succeeded or failed.
    A one-to-many broadcast channel where each value sent is delivered to all subscribers.
    Thrown when an AsyncChannel operation is attempted after the channel has been closed.
    Selects the first available value from multiple AsyncChannels.
    The result of a ChannelSelect.select() operation, indicating which channel produced the value.
    Central configuration for Groovy's concurrent and parallel features.
    A single-assignment variable for dataflow-style programming.
    Convenience API for running work within a pool-isolated AsyncScope.
    A managed thread pool for parallel and concurrent operations.