Method

BirbQueuedOutputStreamclear_queue

since: 0.1

Declaration [src]

void
birb_queued_output_stream_clear_queue (
  BirbQueuedOutputStream* stream
)

Description [src]

Clears the queue of any pending bytes. However, any bytes that are in the process of being sent will finish their operation.

This function is useful for clearing the queue in case of an IO error. Call this in the async callback in order to clear the queue and avoid having all birb_queued_output_stream_push_bytes_async() calls on stream return errors if there’s a fatal stream error.

Available since: 0.1