Function maxByAsync