flush

Flush the current buffer. This introduces a chunk boundary.
O(1). Pop the strict Text we have constructed so far, if any, yielding a new chunk in the result lazy Text.
Pop the ByteString we have constructed so far, if any, yielding a new chunk in the result ByteString.
Flushes the X output buffer and waits until all requests have been processed by the server. This is rarely needed by applications.
Different GL implementations buffer commands in several different locations, including network buffers and the graphics accelerator itself. flush empties all of these buffers, causing all issued commands to be executed as quickly as they are accepted by the actual rendering engine. Though this execution may not be completed in any particular time period, it does complete in finite time. Because any GL program might be executed over a network, or on an accelerator that buffers commands, all programs should call flush whenever they count on having all of their previously issued commands completed. For example, call flush before waiting for user input that depends on the generated image. Note that flush can return at any time. It does not wait until the execution of all previously issued GL commands is complete.
interface to the X11 library function XFlush().
Attempts to flush any queued output data to the server. Returns FlushOk if successful (or if the send queue is empty), FlushFailed if it failed for some reason, or FlushWriting if it was unable to send all the data in the send queue yet (this case can only occur if the connection is nonblocking).
Flush the logger (blocks until flushed)
Pop the ByteString we have constructed so far, if any, yielding a new chunk in the result ByteString. If we're building a strict ByteString with cereal then this does nothing.
Pop the ByteString we have constructed so far, if any, yielding a new chunk in the result ByteString. If we're building a strict ByteString with cereal then this does nothing.
Set a laziness break.
Push the buffer currently being filled onto the chunk list, allocating a new active buffer of the requested size. This is helpful when a small builder is sandwhiched between two large zero-copy builders:
insert bigA <> flush 1 <> word8 0x42 <> insert bigB
Without flush 1, word8 0x42 would see the zero-byte active buffer that insert returned, decide that it needed more space, and allocate a 4080-byte buffer to which only a single byte would be written.
Write any buffered output to file
O(1). Pop the ByteString we have constructed so far, if any, yielding a new chunk in the result lazy ByteString.
Makes a Doc flush against the left margin.
Block until all messages being logged have finished processing. If the MonadIO constraint can't be satisfied, then use flush' instead. Manually calling flush is not usually necessary because new does it already, if at some point you want to ensure that all messages logged until then have properly commited, then flush will block until that happens. Please see log to understand how exceptions behave in this function (hint: they behave unsurprisingly).
Empty the queue (factually, it is deleted)
Remove (delete) all currently stored key-value pairs from the cluster. The expiration value can be used to cause this flush to occur in the future rather than immediately.
flush all the current events, returning them all to the user. Never blocks.
Flush the output buffer and make the all previous output actually visible after a reasonably short amount of time.
  • The operation may return before the buffer has actually been flushed.
Clear all job data in the Faktory server Use with caution!
Block until all messages being logged have finished processing. Manually calling flush is not usually necessary because all log messages are processed as soon as possible, and with ensures that no log message is left unprocessed. However, the actual printing of log messages happens asynchronously, meaning there might be log messages still waiting to be processed. A call to flush will block until all pending log messages have been processed. Please see log to understand how exceptions behave in this function (hint: they behave unsurprisingly).
Makes a Doc flush against the left margin.