def METHOD_NAME(result):
    nonlocal cancel_handler
    nonlocal watch_id
    cancel_inner()
    if result is None:
        retry_timer.schedule(100, retry)
        return
    if cancel_handler is not None:
        cancellable.disconnect(cancel_handler)
        cancel_handler = None
    if watch_id is not None:
        Gio.bus_unwatch_name(watch_id)
        watch_id = None
    LOGGER.info('D-Bus: got interface %r on path %r name %r', interface, path, name)
    set_result(result)