Promise.cancellable


Description:

[ CCode ( has_construct_function = false ) ]
public Promise.cancellable ()

Creates a new [class@Dex.

Promise] that can propagate cancellation if the promise is discarded.

This can be used to plumb cancellation between promises and [callback@Gio.AsyncReadyCallback] based APIs.

Returns:

a [class@Dex.Promise]