Future.for_errno


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "0.4" ) ]
public Future.for_errno (int errno_)

Creates a new rejected future using errno_ as the value of errno for the GError.

The resulting error domain will be g_io_error.

Parameters:

errno_

the `errno` to use for rejection

Returns:

a rejected [class@Dex.Future].