WatcherShutdown
Stops and removes a registered watcher from the watcher registry.
This is the destructive single-watcher lifecycle operation. After this call, the watcher is no longer registered and must be recreated before use.
Method Signature
WatcherShutdown(name=[string])Arguments
Argument
Type
Required
Description
Default
name
string
true
The unique watcher name to shut down.
Examples
Shutdown a file watcher by name
watcherNew( "shutdownWatcher", getTempDirectory() );
watcherShutdown( "shutdownWatcher" );
writeOutput( "shutdown" );
Result: shutdown
Related
Last updated
Was this helpful?
