Implemented async mapcat function