Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
test_alter_table_row_type_rejects_some_bad_changes
Function · 0.85
test_alter_table_row_type_is_transactional
Function · 0.85
test_add_columns_to_table
Function · 0.85
release
Method · 0.85
kill_process
Method · 0.85
maybe_convert_to_large
Method · 0.85
pool_returns_same_obj
Function · 0.85
pool_drops_past_max_size
Function · 0.85
drop
Method · 0.85
take
Method · 0.85
send_v1_computed_queries
Method · 0.85
ConsumeBytes
Function · 0.85
Calls
2
new
Function · 0.70
take
Method · 0.45
Tested by
5
test_alter_table_row_type_rejects_some_bad_changes
Function · 0.68
test_alter_table_row_type_is_transactional
Function · 0.68
test_add_columns_to_table
Function · 0.68
pool_returns_same_obj
Function · 0.68
pool_drops_past_max_size
Function · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…