exit-future 0.2.0

Future that signals exit to many receivers
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
## [Documentation]https://docs.rs/exit-future
----

Create a `Signal` and cloneable `Exit` future that fires when `Signal` is fired or dropped.
Used to coordinate exit between multiple event-loop threads.

```rust
let (signal, exit) = exit_future::signal();

::std::thread::spawn(move || {
    // future resolves when signal fires
    exit.wait();
});

let _ = signal.fire(); // also would fire on drop.
```