[api] Allow for `.map()` to take an async map function.