Sleep
Pauses for a chosen number of milliseconds and can optionally sync pending actions and buffered file writes first. durationMs is truncated to whole milliseconds and may be 0 for a pure sync point. Defaults: commitPendingActionsBeforeSleep=true, flushFileBuffersBeforeSleep=true. When enabled, pending Premiere actions are committed before waiting and buffered file writes are flushed before waiting. Waits for durationMs milliseconds after truncating the value to a whole number. durationMs = 0 is allowed and is useful when the block should act only as a synchronization point. When commitPendingActionsBeforeSleep=true, the runtime commits currently queued Premiere actions before waiting. When flushFileBuffersBeforeSleep=true, buffered text and delimited-spreadsheet writes are flushed to disk before waiting. The block does not inspect host state; it only commits/flushed-as-requested and then waits for the chosen duration. Prefer explicit completion-aware blocks such as waitForCompletion on render/export operations when those already model the required host state.
Inputs
| Input | Required | Value Kind | Types | Enum Values |
|---|---|---|---|---|
durationMs | yes | expression | number | — |
commitPendingActionsBeforeSleep | no | expression | boolean | — |
flushFileBuffersBeforeSleep | no | expression | boolean | — |
Notes
- Waits for
durationMsmilliseconds after truncating the value to a whole number. durationMs = 0is allowed and is useful when the block should act only as a synchronization point.- Defaults:
commitPendingActionsBeforeSleep = trueflushFileBuffersBeforeSleep = true
- When
commitPendingActionsBeforeSleep=true, the runtime commits currently queued Premiere actions before waiting. - When
flushFileBuffersBeforeSleep=true, buffered text and delimited-spreadsheet writes are flushed to disk before waiting. - The block does not inspect host state; it only commits/flushed-as-requested and then waits for the chosen duration.
- Prefer explicit completion-aware blocks such as
waitForCompletionon render/export operations when those already model the required host state.
Examples
Flush Buffered File Write With Sleep
Writes a text file into the runtime buffer, then uses sleep as a zero-delay sync point to flush buffered file writes before continuing.
Topics: files, synchronization
Source: patterns/ex-files-flush-buffered-write-with-sleep.json
Export Transcript And Reference Frame
Creates a temporary sequence from the first selected project item, waits briefly, exports transcript JSON if available, and writes one reference frame for visual verification.
Topics: semantic probing, transcript, frame export, visual verification
Source: recipes/ex-semantic-export-transcript-and-reference-frame.json
Prepare Selected Clip Transcript After Sequence Placement
Creates a temporary sequence from the first selected project item, waits briefly, then exports the clip transcript JSON to a deterministic file path.
Topics: semantic probing, transcript, sequence placement, transcript readiness
Source: recipes/ex-semantic-export-transcript-after-sequence-placement.json