IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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 trait

CounterCompletion

The family's wait instruction is tied to the instruction type, not to a call: it waits until at most a given number of this thread's issues of the family are outstanding.

Implemented traits​

AnyType, AtomCompletion

comptime members​

max_pending​

comptime max_pending

The largest number wait can leave outstanding; 0 when the family can only wait for all of its issues.

Required methods​

wait​

static def wait[pending: Int = Int(0)]()

Blocks until at most pending of the family's issues are outstanding.

Parameters:

  • ​pending (Int): The issues that may stay outstanding, at most max_pending.

Was this page helpful?