timeout_add_with_name


Description:


[ Version ( since = "3.12" ) ]
public uint timeout_add_with_name (int priority, uint interval, string? name, owned SourceFunc function)

Similar to add_full, but also names the SocketSource as name.

You might find e_named_timeout_add or e_named_timeout_add_full more convenient. Those macros name the SocketSource implicitly.

Parameters:

priority

the priority of the timeout source, typically in the range between DEFAULT and HIGH

interval

the time between calls to the function, in milliseconds (1/1000ths of a second)

name

debug name for the source

function

function to call

data

data to pass to function

notify

function to call when the timeout is removed, or null

Returns:

the ID (greather than 0) of the event source


Namespace: E