close

open fun close(cancellable: Cancellable? = null): <Error class: unknown class><Boolean>

Releases all resources used by this enumerator, making the enumerator return %G_IO_ERROR_CLOSED on all calls.

This will be automatically called when the last reference is dropped, but you might want to call this function to make sure resources are released as early as possible.

Return

#TRUE on success or #FALSE on error.

Parameters

cancellable

optional #GCancellable object, null to ignore.