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

BatchCompletion

Issues join the batch the caller opened, without naming it; the caller commits the batch and waits on it.

Implemented traits​

AnyType, AtomCompletion

comptime members​

max_pending​

comptime max_pending

The largest number of committed batches wait can leave outstanding; 0 when it can only wait for all of them.

Required methods​

open​

static def open()

Opens a batch for the issues that follow.

commit​

static def commit()

Closes the open batch.

wait​

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

Blocks until at most pending committed batches are outstanding.

Parameters:

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

Was this page helpful?