// Flush events that have occurred but haven't been delivered. func (es *EventStream) Flush(sync bool) { if sync { C.FSEventStreamFlushSync(es.stream) } else { C.FSEventStreamFlushAsync(es.stream) } }
// https://developer.apple.com/library/mac/documentation/Darwin/Reference/FSEvents_Ref/Reference/reference.html#jumpTo_11 func (s Stream) FlushAsync() EventID { return EventID(C.FSEventStreamFlushAsync(s.cstream)) }