Gio.Cancellable.prototype.release_fd

function release_fd(): void {
    // Gjs wrapper for g_cancellable_release_fd()
}
  

Releases a resources previously allocated by Gio.Cancellable.prototype.get_fd or Gio.Cancellable.prototype.make_pollfd.

For compatibility reasons with older releases, calling this function is not strictly required, the resources will be automatically freed when the cancellable is finalized. However, the cancellable will block scarce file descriptors until it is finalized if this function is not called. This can cause the application to run out of file descriptors when many #GCancellables are used at the same time.

Since 2.22