inhibit_async


Description:

[ Version ( since = "1.8.11" ) ]
public async string inhibit_async (string reason, Cancellable? cancellable) throws Error

Marks all devices as unavailable for update.

Update is only available if there is no other inhibit imposed by other applications or by the system (e.g. low power state).

The same application can inhibit the system multiple times.

Parameters:

this

a Client

reason

the inhibit reason, e.g. `user active`

cancellable

optional Cancellable

callback

the function to run on completion

callback_data

the data to pass to callback