FSEvents.FlushSync
------------------

Flushes events synchronously.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [FSEvents](component_FSEvents.md) | [5.4](newinversion54.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ❌ No |

MBS( "FSEvents.FlushSync"; FSEventsRef ) 

**MBS**( **"FSEvents.FlushSync";** /\* Flushes events synchronously. \*/  
**$FSEventsRef**) /\* The reference number for this FSEvents object.e.g. $fstream \*/ 

### Parameters

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

### Result

Returns OK or error.

### Description

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](FSEventsStart.md).  
### Examples

Flush events:

 MBS ( "FSEvents.FlushSync"; $FSEvents )  
### See also

- [FSEvents.FlushASync](FSEventsFlushASync.md)
- [FSEvents.Start](FSEventsStart.md)

This function is free to use.

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

  
[FSEvents.FlushASync](FSEventsFlushASync.md) - [FSEvents.GetEvaluate](FSEventsGetEvaluate.md)

[HTML Version](FSEventsFlushSync.shtml)