implement AggregateResult for Task.whenAll()