def defer_fail(_failure):
    d = defer.Deferred()
    reactor.callLater(0, d.errback, _failure)
    return d
Same as twisted.internet.defer.fail, but delay calling errback until
dataset/ETHPy150Open wcong/ants/ants/utils/defer.py/defer_fail