Function distinctAsync