Function minByAsync