add_once
Description:
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].
Parameters:
| interval |
the time after which the function will be called, in milliseconds |
| function |
function to call |
| data |
data to pass to |
Returns:
|
the ID (greater than 0) of the event source |
Namespace: GLib.Timeout
Package: glib-2.0