SchedulerCallback

typealias SchedulerCallback = (deadline: Long) -> Boolean

This function is called incrementally to process additional background work. A deadline is provided which can be checked using func@GLib.get_monotonic_time so that additional work can be processed each frame.

This is useful for situations where you are incrementally performing background work such as spell checking or semantic syntax highlighting.

  • param deadline the time the callback should complete by

  • return true if there is more work to process, otherwise false and the handler is unregistered.