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 |
interval |
the timeout interval, in milliseconds |
function |
the callback to invoke at timeout time |
data |
user data to pass to |
Returns:
a SocketSource, which can be removed from |
Namespace: Soup
Package: libsoup-2.4