Function distinctByAsync