Asynchronous Algorithmic Alignment with Cocycles