add_timeout


Description:


public unowned TimeoutSource add_timeout (MainContext? async_context, uint interval, SourceFunc function)

Adds a timeout as with g_timeout_add, but using the given async_context.

Parameters:

async_context

the MainContext to dispatch the I/O watch in, or null for the default context

interval

the timeout interval, in milliseconds

function

the callback to invoke at timeout time

data

user data to pass to function

Returns:

a SocketSource, which can be removed from async_context with destroy.


Namespace: Soup
Package: libsoup-2.4