Skip to content

Add one-shot idle and timeout functions

Emmanuele Bassi requested to merge ebassi/source-once into main

Many idle and timeout sources are installed as "one shot": called once and immediately removed. While it's easy to write a simple callback that returns G_SOURCE_REMOVE, it would also be useful to have some sort of "visual" marker when reading the code; a way to immediately see that a callback (which may be defined elsewhere in the code) is meant to be invoked just once.

Merge request reports