MCPcopy Create free account
hub / github.com/NthTensor/Forte / scope_future

Function scope_future

src/scope.rs:1094–1107  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1092 // SAFETY: We call `add_reference` in `ScopePtr::new`.
1093 unsafe { scope_ref.remove_reference() };
1094 }
1095 }
1096}
1097
1098// -----------------------------------------------------------------------------
1099// Tests
1100
1101#[cfg(test)]
1102mod tests {
1103 use core::iter::once;
1104 use core::pin::Pin;
1105 use core::sync::atomic::AtomicU8;
1106 use core::sync::atomic::AtomicUsize;
1107 use core::sync::atomic::Ordering;
1108 use core::task::Context;
1109 use core::task::Poll;
1110 use std::sync::Mutex;

Callers

nothing calls this directly

Calls 4

resize_to_availableMethod · 0.80
scopeMethod · 0.80
depopulateMethod · 0.80
spawnMethod · 0.45

Tested by

no test coverage detected