g_pollable_source_new


Description:

[ Version ( deprecated_since = "vala-0.16" , deprecated = true , replacement = "PollableSource" ) ]
public weak TimeoutSource g_pollable_source_new (Object pollable_stream)

Warning: g_pollable_source_new is deprecated since "vala-0.16". 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