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

Method clone_as_waker

src/scope.rs:854–859  ·  view source on GitHub ↗

Creates a new `RawWaker` from the provided pointer. # Safety Must be called with a pointer created by calling `Arc::into_raw` on an instance of `Arc ` that is still alive.

(this: *const ())

Source from the content-addressed store, hash-verified

852 // therefore synchronizes-with the previous poll's `Release` store,
853 // ordering that poll's writes before ours.
854 //
855 // - Woken while running: the previous poll's `compare_exchange` failed
856 // (the state was already `WOKEN`), so that poll rescheduled the job
857 // itself. Its writes are sequenced before its `schedule` push, which
858 // the job queue orders (`Release`) before this poll's dequeue
859 // (`Acquire`).
860 //
861 // * The future will not move.
862 //

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected