MCPcopy Create free account
hub / github.com/NthTensor/Forte / increment

Function increment

src/scope.rs:1628–1639  ·  view source on GitHub ↗
(
            counters: &'slice [&'counter AtomicUsize],
        )

Source from the content-addressed store, hash-verified

1626 ) where
1627 OP: Fn(&mut T) + Sync,
1628 {
1629 let Tree { value, children } = self;
1630 scope.spawn(move |_: &Worker| {
1631 for child in children {
1632 scope.spawn(move |_: &Worker| {
1633 let child = child;
1634 child.update_in_scope(scope, op)
1635 });
1636 }
1637 });
1638
1639 op(value);
1640 }
1641 }
1642

Callers 1

scope_mixed_lifetimesFunction · 0.70

Calls 1

spawnMethod · 0.45

Tested by 1

scope_mixed_lifetimesFunction · 0.56