Navigation
API > API/Plugins > API/Plugins/OnlineServicesCommon > API/Plugins/OnlineServicesCommon/TOnlineAsyncOpBase
Description
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 a TArray. The Callable will be called once per BatchSize elements in the previous result. The results will be combined into a TArray ResultType(AsyncOp, LastResultElements) AsyncOp is a FOnlineAsyncOp& or TOnlineAsyncOp
| Name | ForEachN |
| Type | function |
| Header File | /Engine/Plugins/Online/OnlineServices/Source/OnlineServicesCommon/Public/Online/OnlineAsyncOp.h |
| Include Path | #include "Online/OnlineAsyncOp.h" |
template<typename CallableType>
auto ForEachN
(
int32 BatchSize,
CallableType && Callable,
FOnlineAsyncExecutionPolicy ExecutionPolicy
)