GLib.unix_fd_add_full

function unix_fd_add_full(priority: Number(gint), fd: Number(gint), condition: GLib.IOCondition, function: GLib.UnixFDSourceFunc): Number(guint) {
    // Gjs wrapper for g_unix_fd_add_full()
}
  

Sets a function to be called when the IO condition, as specified by condition becomes true for fd.

This is the same as GLib.unix_fd_add, except that it allows you to specify a non-default priority and a provide a GLib.DestroyNotify for user_data.

Since 2.36

priority

the priority of the source

fd

a file descriptor

condition

IO conditions to watch for on fd

function

a GLib.UnixFDSourceFunc

Returns

the ID (greater than 0) of the event source