Yuari
Documentation
Docs/DirectoryWatcher/DirectoryWatcher.OnOverflow

DirectoryWatcher.OnOverflow

Registers a callback invoked when change events overflow.

Syntax

DirectoryWatcher.OnOverflow(watcher: any, callback: function) -> nil

Parameters

ParameterTypeDescription
watcheranyThe watcher value used by the call.
callbackfunctionThe callback invoked by the operation.

Returns

TypeDescription
nilThis function does not return a value.

Description

DirectoryWatcher.OnOverflow is part of the DirectoryWatcher library. Win32 directory monitoring for folders inside the Yuari workspace.

The operation is performed immediately using the arguments supplied at the call site.

Example

watcher:OnOverflow(function() print("overflow") end)

Notes

  • Only folders inside the Yuari workspace can be watched; stop watchers when they are no longer needed.