1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! A poor-man adaptative barrier.
//!
//! An adaptative barrier blocks all task `wait`ing at it,
//! unless all of its non-yet dropped clones have also had their `wait` method
//! called.
//!
//! It is "adaptive" because the number of synchronizing task does not have to be known in advance.
//!
//! More info:
//! <https://users.rust-lang.org/t/a-poor-man-async-adaptive-barrier/68118>
use ;
// TODO: better implementation.
/// An empty enum (non-inhabitated type aka ⊥)
/// Main struct of the module.
pub