Mtk.timeout_add_once
Description: Reference for Mtk.timeout_add_once

### Function

# Mtktimeout_add_once

#### Declaration [src]

    guint
    mtk_timeout_add_once (
      unsigned int interval,
      GSourceOnceFunc function,
      gpointer data
    )

#### Description [src]

Sets a function to be called after `interval` milliseconds have elapsed, with the default priority, `G_PRIORITY_DEFAULT`.

This method is similar to `g_timeout_add_once()` except it will attach the source to the thread-default main context.

#### Parameters

`interval`

  Type: `unsigned int`

  The time after which the function will be called, in milliseconds.

`function`

  Type: `GSourceOnceFunc`

  Function to call.

`data`

  Type: `gpointer`

  Data to pass to `function`.

  The argument can be `NULL`.
  The data is owned by the caller of the function.

#### Return value

Type: `guint`

The ID (greater than 0) of the event source.