await_fd


Description:

[ CCode ( cname = "dex_await_fd" ) ]
[ DestroysInstance ]
[ Version ( since = "0.10" ) ]
public int await_fd () throws Error

Awaits on this and returns the resulting file-descriptor.

The resolved value must be of type dex_type_fd or throws is set.

Parameters:

this

a [class@Dex.Future]

Returns:

a valid file descriptor or -1. you may get -1 without error being set if there was no rejected future.