pub fn flush()
Flushes the output buffers of all display connections and waits until all requests have been processed. This is rarely needed by applications.