One-method library for calling asynchronous functions one by one in a queue