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

Function scope_pending_future

src/scope.rs:1143–1150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1141 });
1142 assert_eq!(x, 22);
1143
1144 THREAD_POOL.depopulate();
1145 }
1146
1147 /// Tests that multiple tasks in a scope run to completion.
1148 #[test]
1149 fn scope_two() {
1150 static THREAD_POOL: ThreadPool = ThreadPool::new();
1151 THREAD_POOL.resize_to_available();
1152
1153 let counter = &AtomicUsize::new(0);

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