Uses of Class
cloud.opencode.base.parallel.structured.TaskResult
Packages that use TaskResult
Package
Description
Structured Package - Structured Concurrency (JDK 25 JEP 499/501)
结构化包 - 结构化并发 (JDK 25 JEP 499/501)
-
Uses of TaskResult in cloud.opencode.base.parallel.structured
Methods in cloud.opencode.base.parallel.structured that return TaskResultModifier and TypeMethodDescriptionstatic <T> TaskResult<T> TaskResult.cancelled()Creates a cancelled result.static <T> TaskResult<T> Creates a failed result.<R> TaskResult<R> TaskResult.flatMap(Function<T, TaskResult<R>> mapper) Flat maps the success value.TaskResult.ifCancelled(Runnable action) Executes action if cancelled.Executes action if failure.Executes action if success.<R> TaskResult<R> Maps the success value.static <T> TaskResult<T> Creates a result from a callable.Recovers from failure.static <T> TaskResult<T> TaskResult.success(T value) Creates a successful result.Methods in cloud.opencode.base.parallel.structured that return types with arguments of type TaskResultModifier and TypeMethodDescriptionList<TaskResult<T>> ScheduledScope.joinAsResults()Joins and returns results as TaskResults.List<TaskResult<T>> StructuredScope.joinAsResults()Joins and returns results as TaskResults.Method parameters in cloud.opencode.base.parallel.structured with type arguments of type TaskResultModifier and TypeMethodDescription<R> TaskResult<R> TaskResult.flatMap(Function<T, TaskResult<R>> mapper) Flat maps the success value.