Async function map and queue