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

Function scope_panic_propagate_from_nested_spawn

src/scope.rs:1474–1487  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1472 scope(|scope| self.update_in_scope(scope, &op));
1473 }
1474
1475 fn update_in_scope<'scope, 'env, OP>(
1476 &'env mut self,
1477 scope: &'scope Scope<'scope, 'env>,
1478 op: &'scope OP,
1479 ) where
1480 OP: Fn(&mut T) + Sync,
1481 {
1482 let Tree { value, children } = self;
1483 scope.spawn(move |_: &Worker| {
1484 for child in children {
1485 scope.spawn(move |_: &Worker| {
1486 let child = child;
1487 child.update_in_scope(scope, op)
1488 });
1489 }
1490 });

Callers

nothing calls this directly

Calls 4

resize_to_availableMethod · 0.80
scopeMethod · 0.80
depopulateMethod · 0.80
spawnMethod · 0.45

Tested by

no test coverage detected