Drive.eject

Asynchronously ejects a drive.

When the operation is finished, callback will be called. You can then call gio.drive.Drive.ejectFinish to obtain the result of the operation.

More...

Parameters

flags gio.types.MountUnmountFlags

flags affecting the unmount if required for eject

cancellable gio.cancellable.Cancellable

optional #GCancellable object, null to ignore.

callback gio.types.AsyncReadyCallback

a #GAsyncReadyCallback, or null.

Detailed Description

Deprecated: Use gio.drive.Drive.ejectWithOperation instead.