pub fn completeOne(n: Node) void n: Node316
317
318
319
320 pub fn completeOne(n: Node) void {
const index = n.index.unwrap() orelse return;
const storage = storageByIndex(index);
_ = @atomicRmw(u32, &storage.completed_count, .Add, 1, .monotonic);
}
This is the same as calling
startand thenendon the returnedNode. Thread-safe.