Mojo struct
SpinWaiter
A proxy for the C++ runtime's SpinWaiter type.
Fields
- storage (
UnsafePointer[NoneType]
): Pointer to the underlying SpinWaiter instance.
Implemented traits
AnyType
Methods
__init__
__init__(out self)
Initializes a SpinWaiter instance.
__del__
__del__(owned self)
Destroys the SpinWaiter instance.
wait
wait(self)
Blocks the current task for a duration determined by the underlying policy.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!