Skip to main content

Module tasks

Module tasks 

Source
Expand description

§Task Function Module

Provides zero-argument task-oriented functional abstractions.

Callable represents a one-time computation that returns Result<R, E>. Runnable represents a one-time action that returns Result<(), E>. Both abstractions are intentionally fallible and consume self, making them suitable for deferred work, workflows, retry steps, cleanup hooks, and executor task submission.

§Author

Haixing Hu

Re-exports§

pub use callable::BoxCallable;
pub use callable::Callable;
pub use runnable::BoxRunnable;
pub use runnable::Runnable;

Modules§

callable
Callable Types
runnable
Runnable Types