workyard-core 0.1.3

Task lifecycle and repository coordination contracts for Workyard
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::Problem;
use std::future::Future;

/// Receives progress when a task operation reaches a participant step.
pub trait Observer: Sync {
	/// Deliver the named progress step for one task participant.
	fn phase(
		&self,
		task: &str,
		participant: &str,
		phase: &str,
	) -> impl Future<Output = Result<(), Problem>> + Send;
}