Gio.File.prototype.eject_mountable_with_operation

function eject_mountable_with_operation(flags: Gio.MountUnmountFlags, mount_operation: Gio.MountOperation, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for g_file_eject_mountable_with_operation()
}
  

Starts an asynchronous eject on a mountable. When this operation has completed, callback will be called with @user_user data, and the operation can be finalized with Gio.File.prototype.eject_mountable_with_operation_finish.

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 Gio.IOErrorEnum.cancelled will be returned.

Since 2.22

flags

flags affecting the operation

mount_operation

a Gio.MountOperation, or null to avoid user interaction

cancellable

optional Gio.Cancellable object, null to ignore

callback

a Gio.AsyncReadyCallback to call when the request is satisfied, or null