Package cloud.opencode.base.parallel


package cloud.opencode.base.parallel
OpenCode Parallel - Modern Parallel Computing Utilities OpenCode 并行 - 现代化并行计算工具

This package provides comprehensive parallel computing utilities built on JDK 25 virtual threads.

此包提供基于 JDK 25 虚拟线程的综合并行计算工具。

Core Classes | 核心类

Sub-packages | 子包

  • cloud.opencode.base.parallel.pipeline - Async pipeline and functions
  • cloud.opencode.base.parallel.batch - Batch processing utilities
  • cloud.opencode.base.parallel.executor - Virtual thread executors
  • cloud.opencode.base.parallel.structured - Structured concurrency tools
  • cloud.opencode.base.parallel.exception - Parallel exceptions

Example | 示例

// Parallel execution
OpenParallel.runAll(() -> taskA(), () -> taskB());

// Parallel with results
List<String> results = OpenParallel.invokeAll(
    () -> fetchA(),
    () -> fetchB()
);
Since:
JDK 25, opencode-base-parallel V1.0.0
Author:
Leon Soo www.LeonSoo.com
See Also: