Overseer (#1152)
* Initial commit * Licenses, spaces, docs * Add a spawner * Watch spawned subsystems with a FuturesUnordered * Move the types around a bit * Suggested fixes by Max * Add a handler to talk to the Overseer * FromOverseer and ToOverseer msgs and stopping * Docs and return errors * Dont broadcast, have add a from field to messages * Allow communication between subsystems and outside world * A message with a oneshot to send result example * Remove leftover can_recv_msg * Remove from field from messages * Dont be generic over stuff * Gather messages with StreamUnordered * Fix comments and formatting * More docs fixes and an example * Apply suggestions from code review Co-authored-by:Robert Habermeier <rphmeier@gmail.com> * Fixes from review Move function from impl block. Do not panic but resolve with errors if spawner fails or subsystem resolves. * Dropping a handler results in a flaky test Co-authored-by:
Robert Habermeier <rphmeier@gmail.com>
Showing
- polkadot/Cargo.lock 41 additions, 0 deletionspolkadot/Cargo.lock
- polkadot/Cargo.toml 1 addition, 0 deletionspolkadot/Cargo.toml
- polkadot/overseer/Cargo.toml 18 additions, 0 deletionspolkadot/overseer/Cargo.toml
- polkadot/overseer/examples/minimal-example.rs 134 additions, 0 deletionspolkadot/overseer/examples/minimal-example.rs
- polkadot/overseer/src/lib.rs 768 additions, 0 deletionspolkadot/overseer/src/lib.rs
Please register or sign in to comment