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
66
//! # Registry completion signals
//!
//! Natural completion, an explicit remove or cancel, and shutdown can all start
//! terminal removal. One path claims the actor and becomes its join owner.
//! [`RemovalCompletion`] connects callers waiting for cleanup with that owner.
//!
//! ```text
//! Registered ──► Removing ──► join or force-abort ──► remove registry membership
//! │
//! ▼
//! RemovalCompletion complete
//! ```
use oneshot;
use CancellationToken;
use crateTaskOutcome;
/// Sender used to resolve a watched task with its final [`TaskOutcome`].
pub type OutcomeTx = Sender;
/// Shared one-shot signal for committed terminal registry cleanup.
///
/// Every clone observes the same completion. The signal becomes complete only
/// after the actor has been joined or force-aborted and its identity and label
/// have been removed from the registry. Watched-outcome delivery and final event
/// publication are attempted before waiters are released.
///
/// This is not the actor's cancellation token. Creating or waiting on this value
/// does not request task cancellation.
pub