Skip to main content

scientific_workflow/task/
result.rs

1//! Application execution-unit and private task result boundaries.
2
3/// The result returned by application-defined execution-unit operations.
4///
5/// Errors must be thread-safe and own every value they reference so a runtime
6/// may move them across worker boundaries and retain their source chains.
7pub type UnitResult<T = ()> = Result<T, Box<dyn std::error::Error + Send + Sync + 'static>>;
8
9/// Private name for the same erased error boundary inside scheduled tasks.
10pub(crate) type TaskResult<T = ()> = UnitResult<T>;