forge
Clone
https://git.tahinli.com/Tahinli/forge.git
0 watching0 forksRustAGPL-3.07.1 MiB490f099Tahinli7 hours ago322 commits
| 1 | //! Change signals for package registries. [`PackagesLive`] keeps one generation counter per owner. |
| 2 | //! A publish or a yank bumps the owner's counter, and every open page of that registry wakes and |
| 3 | //! refetches. The counter carries no data, and nothing polls. A signal with no receivers left is |
| 4 | //! removed, so the map holds only the owners somebody is watching. The hub is in-process only, |
| 5 | //! like [`NotifyHub`]. |
| 6 | //! |
| 7 | //! [`NotifyHub`]: crate::notify_hub::NotifyHub |
| 8 | |
| 9 | use HashMap; |
| 10 | use ; |
| 11 | |
| 12 | use watch; |
| 13 | |
| 14 | /// The change counters of package registries, each keyed by its owner's id. |
| 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 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 |