Future.for_error


Description:

[ CCode ( has_construct_function = false ) ]
public Future.for_error (owned Error error)

Creates a read-only [class@Dex.

Future] that has rejected.

Parameters:

error

a [struct@GLib.Error]

Returns:

a [class@Dex.Future]