Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Difference From wakerizer-0.1.0 To wakerizer-0.2.0
|
2025-04-05
| ||
| 14:41 | Release maintenance. Leaf check-in: ef7a5da54f user: jan tags: trunk, wakerizer-0.2.0 | |
| 14:28 | Merge. check-in: e57772d3a5 user: jan tags: trunk | |
| 01:30 | Remove wake_one(). Replace IndexMap with rustc-hash::FxHashMap. Closed-Leaf check-in: 390d406790 user: jan tags: 0.2.0-wip | |
|
2025-04-01
| ||
| 01:15 | Move from old repo. check-in: 579045bbba user: jan tags: trunk, wakerizer-0.1.0 | |
| 01:02 | initial empty check-in check-in: a8735ea926 user: jan tags: trunk | |
Changes to Cargo.toml.
1 2 | 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 | - + - + | [package] name = "wakerizer" |
| ︙ |
Changes to src/lib.rs.
1 2 3 | 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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | - - + + - - + - - - - - - - + - - + + - - - - - - - - - - - - - - - - - - - - - + | //! _wakerizer_ is intended to be used to keep track of multiple `Future`s //! waiting for a single (shared) resource. //! |
| ︙ | |||
112 113 114 115 116 117 118 | 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | - + - + - + |
}
}
impl Default for Wakers {
fn default() -> Self {
let inner = Inner {
wake_on_drop: false,
|
| ︙ | |||
163 164 165 166 167 168 169 | 136 137 138 139 140 141 142 143 144 145 146 147 148 | - + |
}
}
impl Drop for Waiter {
fn drop(&mut self) {
let mut g = self.sh.lock();
if let Some(id) = self.id {
|
Changes to tests/basic.rs.
1 2 3 4 | 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 | - - + + - + - - - - - |
use std::{
future::Future,
pin::Pin,
sync::{
|
| ︙ | |||
75 76 77 78 79 80 81 | 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 | - + |
});
let waiter = button.waiter();
let jh3 = task::spawn(async {
waiter.await;
});
|
| ︙ | |||
103 104 105 106 107 108 109 | 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
let waiter = button.waiter();
let jh3 = task::spawn(async {
waiter.await;
});
time::sleep(Duration::from_millis(100)).await;
|
Changes to www/changelog.md.
1 2 3 4 5 6 | 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 | - + + + + + + + + + + + + + + + | # Change Log ⚠️ indicates a breaking change. ## [Unreleased] |