MCPcopy 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

builderFunction · 0.85
deferMethod · 0.45

Tested by

no test coverage detected