resolve_fd


Description:

public void resolve_fd (int fd)

Resolves the promise to fd.

The file-descriptor may be dup'd by this function and fd closed immediately.

Use await_fd or similar to retrieve the resolved FD.

Parameters:

this

a [class@Dex.Promise]

fd

a file-descriptor for the resolve to resolve to