For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Mojo struct
Cursor
struct Cursor
One side's place in a ring: the next slot and its phase parity.
Fields
- slot (
Int32): - phase (
UInt32):
Implemented traits
AnyType,
Copyable,
Deinitable,
ImplicitlyCopyable,
Movable,
RegisterPassable,
TrivialRegisterPassable
Methods
producer
static def producer() -> Self
A producer's first wait on an empty slot passes: parity 1.
consumer
static def consumer() -> Self
step
def step[depth: Int](mut self)