Пример #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)
	}
}
Пример #2
0
// https://developer.apple.com/library/mac/documentation/Darwin/Reference/FSEvents_Ref/Reference/reference.html#jumpTo_12
func (s Stream) Flush() {
	C.FSEventStreamFlushSync(s.cstream)
}