Library that simplifies coordination of asynchronous and synchronous actions