pollableSourceNew

fun pollableSourceNew(pollableStream: <Error class: unknown class>): <Error class: unknown class>

Utility method for #GPollableInputStream and #GPollableOutputStream implementations. Creates a new #GSource that expects a callback of type #GPollableSourceFunc. The new source does not actually do anything on its own; use g_source_add_child_source() to add other sources to it to cause it to trigger.

Return

the new #GSource.

Since

2.28

Parameters

pollableStream

the stream associated with the new source