SchedulerCallback


Description:

[ CCode ( instance_pos = 1.9 ) ]
[ Version ( since = "5.2" ) ]
public delegate bool SchedulerCallback (int64 deadline)

This function is called incrementally to process additional background work.

A deadline is provided which can be checked using [[email protected]_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.

Parameters:

deadline

the time the callback should complete by

user_data

closure data provided when registering callback

Returns:

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


Namespace: GtkSource
Package: gtksourceview-5



2022 vala-language.org