RGtk2 (version 2.20.31)

gOutputStreamFlush: gOutputStreamFlush

Description

Flushed any outstanding buffers in the stream. Will block during the operation. Closing the stream will implicitly cause a flush.

Usage

gOutputStreamFlush(object, cancellable = NULL, .errwarn = TRUE)

Arguments

object
cancellable
optional cancellable object
.errwarn
Whether to issue a warning on error or fail silently

Value

A list containing the following elements:
retval
[logical] TRUE on success, FALSE on error
error
location to store the error occuring, or NULL to ignore

Details

This function is optional for inherited classes. If cancellable is not NULL, then the operation can be cancelled by triggering the cancellable object from another thread. If the operation was cancelled, the error G_IO_ERROR_CANCELLED will be returned.