fix documentation
This commit is contained in:
parent
0683ea3481
commit
3e3a53dbe6
@ -68,7 +68,7 @@ impl<H: Handler, N: Notifier> Worker<H, N> {
|
|||||||
*guard
|
*guard
|
||||||
}
|
}
|
||||||
|
|
||||||
// launch launches a thread to handle all the `Message` form the `queue`.
|
// launch launches a thread to handle all the `Message` from the `queue`.
|
||||||
//
|
//
|
||||||
// It tries to parse the incoming `Message` into a `Runner` and runs it.
|
// It tries to parse the incoming `Message` into a `Runner` and runs it.
|
||||||
// If an `Unknown` error is returned from the handler, the thread is stopped and its status is set to `Failed`.
|
// If an `Unknown` error is returned from the handler, the thread is stopped and its status is set to `Failed`.
|
||||||
@ -156,7 +156,6 @@ impl<H: Handler, N: Notifier> Manager<H, N> {
|
|||||||
//
|
//
|
||||||
// parameters:
|
// parameters:
|
||||||
// * `nb_workers`: number of workers to launch
|
// * `nb_workers`: number of workers to launch
|
||||||
// * `shared_handlers`: a thread-sharable `Handler`
|
|
||||||
//
|
//
|
||||||
// Example:
|
// Example:
|
||||||
// deployer.launch_workers::<Job>(5)
|
// deployer.launch_workers::<Job>(5)
|
||||||
@ -176,10 +175,6 @@ impl<H: Handler, N: Notifier> Manager<H, N> {
|
|||||||
self.status = ManagerStatus::Up;
|
self.status = ManagerStatus::Up;
|
||||||
}
|
}
|
||||||
|
|
||||||
// pub async fn get_events(&self, end: Shutdown) -> EventStream![] {
|
|
||||||
// self.notifier.events(end).await
|
|
||||||
// }
|
|
||||||
|
|
||||||
// subscribe subscribes to a `Receiver` channel and notify all the related workers.
|
// subscribe subscribes to a `Receiver` channel and notify all the related workers.
|
||||||
pub fn subscribe(&self, receiver: Receiver<Message>) {
|
pub fn subscribe(&self, receiver: Receiver<Message>) {
|
||||||
let queue = self.queue.clone();
|
let queue = self.queue.clone();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user