Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NthTensor/Forte
/ random_tree
Function
random_tree
src/scope.rs:1371–1375 ·
view source on GitHub ↗
(depth: usize, seed: u64)
Source
from the content-addressed store, hash-verified
1369
1370
let mut value = 0;
1371
THREAD_POOL.scope(|scope| {
1372
scope.spawn(async {
1373
value = 42;
1374
});
1375
});
1376
assert_eq!(value, 42);
1377
1378
THREAD_POOL.depopulate();
Callers
1
scope_update_tree
Function · 0.85
Calls
1
random_tree_inner
Function · 0.85
Tested by
1
scope_update_tree
Function · 0.68