Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ alloc_id
Method
alloc_id
nodedb/src/control/shutdown/bus.rs:70–74 ·
view source on GitHub ↗
(&mut self)
Source
from the content-addressed store, hash-verified
68
69
impl BusState {
70
fn alloc_id(&mut self) -> TaskId {
71
let id = TaskId(self.next_id);
72
self.next_id += 1;
73
id
74
}
75
76
fn pending_for_phase(&self, phase: ShutdownPhase) -> Vec<(TaskId, &'static str)> {
77
self.tasks
Callers
1
register_task
Method · 0.80
Calls
1
TaskId
Class · 0.85
Tested by
no test coverage detected