stop


Description:

[ Version ( since = "2.22" ) ]
public abstract async bool stop (MountUnmountFlags flags, MountOperation? mount_operation, Cancellable? cancellable = null) throws Error

Asynchronously stops a drive.

When the operation is finished, callback will be called. You can then call stop.end to obtain the result of the operation.

Parameters:

this

a Drive.

flags

flags affecting the unmount if required for stopping.

mount_operation

a MountOperation or null to avoid user interaction.

cancellable

optional Cancellable object, null to ignore.

callback

a TaskReadyCallback, or null.

user_data

user data to pass to callback