Skip to main content
Log in

Mojo struct

SpinWaiter

struct SpinWaiter

A proxy for the C++ runtime's SpinWaiter type.

Fields

  • storage (UnsafePointer[NoneType]): Pointer to the underlying SpinWaiter instance.

Implemented traits

AnyType, UnknownDestructibility

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.