[ Version ( since = "2.74" ) ]
public uint add_once (uint interval, owned SourceOnceFunc function)
Sets a function to be called after interval milliseconds have elapsed, with the default priority, [const@GLib.
PRIORITY_DEFAULT].
The given function is called once and then the source will be automatically removed from the main context.
This function otherwise behaves like [func@GLib.timeout_add].
| interval |
the time after which the function will be called, in milliseconds |
| function |
function to call |
| data |
data to pass to |
|
the ID (greater than 0) of the event source |