// 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_12 func (s Stream) Flush() { C.FSEventStreamFlushSync(s.cstream) }