提交 aa2364d6 authored 作者: Serhij S's avatar Serhij S

block remark

上级 6b24203d
......@@ -288,7 +288,10 @@ where
variables: self.variables.clone(),
}
}
/// Blocks until all tasks/workers are finished
/// Blocks until all non-blocking tasks/workers are finished. In case if signals are
/// registered, the controller is blocked until a signal is received, despite all worker tasks
/// are finished. Use [`Controller::block_while_online()`] instead to let controller workers
/// shut down the controller.
pub fn block(&mut self) {
self.supervisor.join_all();
self.state.set(ControllerStateKind::Stopped);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论