workyard_core/ports/observer.rs
1use crate::Problem;
2use std::future::Future;
3
4/// Receives progress when a task operation reaches a participant step.
5pub trait Observer: Sync {
6 /// Deliver the named progress step for one task participant.
7 fn phase(
8 &self,
9 task: &str,
10 participant: &str,
11 phase: &str,
12 ) -> impl Future<Output = Result<(), Problem>> + Send;
13}