Package: glib

Function glib:source-attach

Lambda List

glib:source-attach (source context)

Arguments

source -- a g:source instance
context -- a g:main-context instance, if nil, the default context will be used

Return Value

The unsigned integer ID greater than 0 for the source within context.

Details

Adds a source to a context so that it will be executed within that context. Remove it by calling the g:source-destroy function.
 

See also

2024-11-6