IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /max/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. /max/get-started.md).

Mojo function

update_wait_counts

update_wait_counts(mut counts: WaitCounts, e: ScheduleEntry, next_tag: Int)

Updates counts for one entry; next_tag is the next entry's tag (or _Ops.NONE.value for the last entry).

Args:

  • โ€‹counts (WaitCounts): Counter aggregate updated in place.
  • โ€‹e (ScheduleEntry): The schedule entry being inspected.
  • โ€‹next_tag (Int): Tag of the next entry, used to detect coalesced vm+lgkm pairs. Pass _Ops.NONE.value for the last entry.