pause

pause

pause

Function

Prints an optional prompt to the console and waits for the user to press Enter.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
messageAnyNoNonePrompt text to be output before waiting.

Return value

TypeDescription
EmptyReturns to Empty after the user presses Enter.

Example

Notes

  • This function will block the current thread and should not be used in the server hot path.