For the complete documentation index, see llms.txt. This page is also available as Markdown.

WatcherRestart

Restarts a registered watcher by performing {@code stop()} then {@code start()}.

This is useful when refreshing watcher state after path changes or listener updates.

Method Signature

WatcherRestart(name=[string])

Arguments

Argument
Type
Required
Description
Default

name

string

true

The unique watcher name to restart.

Examples

Restart a file watcher

watcherNew( "restartWatcher", getTempDirectory() );
watcherRestart( "restartWatcher" );
writeOutput( "restarted" );

Result: restarted

Last updated

Was this helpful?