pub fn hook<F, Fut>(sync_point: SyncPoint, action: F)where F: Fn() -> Fut + Send + Sync + 'static, Fut: Future<Output = ()> + Send + 'static,
Hook a sync point with action.
The action will be executed before reaching the sync point.