PollFunc
typealias PollFunc = (ufds: PollFd, <Error class: unknown class>, <Error class: unknown class>) -> <Error class: unknown class>
Specifies the type of function passed to g_main_context_set_poll_func(). The semantics of the function should match those of the poll() system call.
param
ufds
an array of #GPollFD elementsparam
nfsd
the number of elements in @ufdsparam
timeout
the maximum time to wait for an event of the file descriptors. A negative value indicates an infinite timeout.return the number of #GPollFD elements which have events or errors reported, or -1 if an error occurred.