Drive.eject

void eject(gio.types.MountUnmountFlags flags, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

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.

Parameters

flagsflags affecting the unmount if required for eject
cancellableoptional #GCancellable object, null to ignore.
callbacka #GAsyncReadyCallback, or null.

Deprecated

Use [gio.drive.Drive.ejectWithOperation] instead.