Mount.eject

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

Ejects a mount. This is an asynchronous operation, and is finished by calling [gio.mount.Mount.ejectFinish] with the mount and #GAsyncResult data 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.mount.Mount.ejectWithOperation] instead.