Gio.Drive.prototype.eject_with_operation_finish

function eject_with_operation_finish(result: Gio.AsyncResult): Boolean {
    // Gjs wrapper for g_drive_eject_with_operation_finish()
}
  

Finishes ejecting a drive. If any errors occurred during the operation, @error will be set to contain the errors and false will be returned.

Since 2.22

result

a Gio.AsyncResult.

Returns

true if the drive was successfully ejected. false otherwise.