Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/base/triedb
/ defer
Function
defer
src/executor/threadpool.rs:64–68 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
62
63
#[test]
64
fn defer() {
65
let pool = builder().build().expect(
"building thread pool failed"
);
66
let future = pool.defer(|| 123);
67
assert_eq!(future.wait(), &123);
68
}
69
70
#[test]
71
fn poisoning() {
Callers
nothing calls this directly
Calls
2
builder
Function · 0.85
defer
Method · 0.45
Tested by
no test coverage detected