Simple library for serial execution of asynchronous functions