I added support for both async functions and promises as the first argument, rather than a url. You can find an example usage here.
Addresses #23