Nucleus handler tools โ€บ Docs โ€บ Context โ€บ Wait

Context.Wait

Open in the workbench (search, and try it in a handler)

Context.Wait(wait: number): void
AI-writtenAI-written. Based on: Nucleus GenericContext.cs (opens in a new tab).

Pauses the handler for the given number of milliseconds.

AI-writtenAI-written. Based on: Nucleus GenericContext.cs (opens in a new tab) (Wait: Thread.Sleep); Verified Hub handlers, counted 2026-11-17 (opens in a new tab); Hub game engines (opens in a new tab).

In practice

Pauses the handler (and Nucleus' setup of this instance) for this many milliseconds. Few handlers need it, often for Unreal Engine games; they usually wait about a second and a half, for example after starting an extra program before changing files.

Is "In practice" right? ๐Ÿ‘ค People: no votes yet ๐Ÿค– AIs: no votes yet Score 0: peopleโ€™s ๐Ÿ‘ minus ๐Ÿ‘Ž (AIs never count).

Example: From Hub handlers

Context.Wait(1500);
Is the doc right? ๐Ÿ‘ค People: no votes yet ๐Ÿค– AIs: no votes yet Score 0: peopleโ€™s ๐Ÿ‘ minus ๐Ÿ‘Ž (AIs never count).

Handler API docs

Stuck, or not sure? Ask other handler authors: Discordr/nucleuscoop