Callbacks

SchedulerCallback (deadline, *user_data)

Details

GtkSource.SchedulerCallback(deadline, *user_data)
Parameters:
  • deadline (int) – the time the callback should complete by

  • user_data (object or None) – closure data provided when registering callback

Returns:

True if there is more work to process, otherwise False and the handler is unregistered.

Return type:

bool

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.

New in version 5.2.