sync_point

Function hook

source
pub fn hook<F, Fut>(sync_point: SyncPoint, action: F)
where F: Fn() -> Fut + Send + Sync + 'static, Fut: Future<Output = ()> + Send + 'static,
Expand description

Hook a sync point with action.

The action will be executed before reaching the sync point.