Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Flushes events synchronously.

Component Version macOS Windows Linux Server iOS SDK
FSEvents 5.4 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ❌ No
MBS( "FSEvents.FlushSync"; FSEventsRef )   More


Parameter Description Example
FSEventsRef The reference number for this FSEvents object. $fstream


Returns OK or error.


Flushes events synchronously.
Asks the FS Events service to flush out any events that have occurred but have not yet been delivered, due to the latency parameter that was supplied when the stream was created. This flushing occurs synchronously -- by the time this call returns, your callback will have been invoked for every event that had already occurred at the time you made this call. FSEvents.FlushSync can only be called after the stream has been started, via FSEvents.Start.


Flush events:

MBS( "FSEvents.FlushSync"; $FSEvents )

See also

This function is free to use.

Created 18th November 2015, last changed 13th March 2016

FSEvents.FlushASync - FSEvents.GetEvaluate