MCPcopy Create free account
hub / github.com/apache/arrow-rs / test_access_array_concurrently

Function test_access_array_concurrently

arrow-array/src/array/primitive_array.rs:2330–2336  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2328
2329 #[test]
2330 fn test_access_array_concurrently() {
2331 let a = Int32Array::from(vec![5, 6, 7, 8, 9]);
2332 let ret = std::thread::spawn(move || a.value(3)).join();
2333
2334 assert!(ret.is_ok());
2335 assert_eq!(8, ret.ok().unwrap());
2336 }
2337
2338 #[test]
2339 fn test_primitive_array_creation() {

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected