fd_watch


Description:


[ Version ( since = "1.1" ) ]
public Future fd_watch (int fd, int events)

Creates a new GSource that will fire when events is satisfied.

This is primarily useful when integrating with legacy systems on a fiber.

Parameters:

fd

a file-descriptor

events

the POLLOUT|POLLIN style bitmask to watch for

Returns:

a [class@Dex.Future] that resolves to the revents value when events is satisfied.


Namespace: Dex
Package: libdex-1