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

WatcherGetAll

Retrieves all registered watchers as a struct keyed by watcher name.

The returned struct is a snapshot of the service registry at invocation time, where each key is the watcher name and each value is the corresponding {@link ortus.boxlang.runtime.async.watchers.WatcherInstance}.

Method Signature

WatcherGetAll()

Arguments

This function does not accept any arguments

Examples

Get all registered file watchers

watcherNew( "w1", getTempDirectory() );
watcherNew( "w2", getTempDirectory() );
all = watcherGetAll();
writeOutput( all.len() gte 2 );

Result: true

Last updated

Was this helpful?