Ejemplo n.º 1
0
// 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)
	}
}
Ejemplo n.º 2
0
// 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))
}