Future.for_fd


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "0.10" ) ]
public Future.for_fd (int fd)

Creates a new future that resolves to fd.

This function takes ownership of fd.

Parameters:

fd

the file-descriptor to take ownership of

Returns:

a resolved [class@Dex.Future]