def METHOD_NAME(future):
    global _prio_mapping
    result = future.result()
    if not cancellable.is_cancelled():
        glib_priority = _prio_mapping[priority]
        GLib.idle_add(callback_main, cancellable, callback, result,
                      priority=glib_priority)