Volume.eject

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

Ejects a volume. This is an asynchronous operation, and is finished by calling [gio.volume.Volume.ejectFinish] with the volume and #GAsyncResult returned in the callback.

Parameters

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

Deprecated

Use [gio.volume.Volume.ejectWithOperation] instead.