/Engine/Plugins/Online/OnlineServices/Source/OnlineServicesCommon/Public/Online/OnlineAsyncOp.h
Callable can take one of the following forms, where the second form is used when an asynchronous call can set the promise with a value that is only valid for the duration of the Callable call. This can be used when the previous continuation returned aTArray. The Callable will be called once per BatchSize elements in the previous result. The results will be combined into aTArrayResultType(AsyncOp, LastResultElements) AsyncOp is aFOnlineAsyncOp& or TOnlineAsyncOp& LastResultElements is a TArrayor const TArray& ResultType is any type, or aTFutureto allow for an asynchronous result void(AsyncOp, LastResultElements, TPromise&&) AsyncOp is aFOnlineAsyncOp& or TOnlineAsyncOp& LastResultElements is a TArrayor const TArray& ResultType is any non-void type
template<typename CallableType> auto ForEachN ( int BatchSize, CallableType && Callable, [FOnlineAsyncExecutionPolicy](API\Plugins\OnlineServicesCommon\Online\FOnlineAsyncExecutionPolicy) ExecutionPolicy )