Function

GtkSource-5GtkSourcescheduler_addSince 5.2

  • Adds a new callback that will be executed as time permits on the main thread.

    This is useful when you need to do a lot of background work but want to do it incrementally.

    callback will be provided a deadline that it should complete it's work by (or near) and can be checked using GLib.get_monotonic_time for comparison.

    Use scheduler_remove to remove the handler.

    Parameters

    Returns number

    5.2