MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / take

Function take

crates/data-structures/src/object_pool.rs:251–253  ·  view source on GitHub ↗
(pool: &P)

Source from the content-addressed store, hash-verified

249 }
250
251 fn take(pool: &P) -> Box<i32> {
252 pool.take(|_| {}, || Box::new(0))
253 }
254
255 #[test]
256 fn pool_returns_same_obj() {

Callers 15

releaseMethod · 0.85
kill_processMethod · 0.85
pool_returns_same_objFunction · 0.85
pool_drops_past_max_sizeFunction · 0.85
dropMethod · 0.85
takeMethod · 0.85
ConsumeBytesFunction · 0.85

Calls 2

newFunction · 0.70
takeMethod · 0.45

Used in the wild real call sites across dependent graphs

searching dependent graphs…