g_pollable_source_new


Description:

[ Deprecated ( since = "vala-0.16" , replacement = "PollableSource" ) ]
public weak TimeoutSource g_pollable_source_new (Object pollable_stream)

Warning: g_pollable_source_new is deprecated. Use GLib.PollableSource.

Utility method for PollableInputStream and PollableOutputStream implementations.

Creates a new SocketSource that expects a callback of type PollableSourceFunc. The new source does not actually do anything on its own; use add_child_source to add other sources to it to cause it to trigger.

Parameters:

pollable_stream

the stream associated with the new source

Returns:

the new SocketSource.


Namespace: GLib
Package: gio-2.0