timeoutAddOnce

fun timeoutAddOnce(interval: <Error class: unknown class>, function: SourceOnceFunc): <Error class: unknown class>

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.

Return

the ID (greater than 0) of the event source

Since

2.74

Parameters

interval

the time after which the function will be called, in milliseconds (1/1000ths of a second)

function

function to call