I'm using remote RPC of my network service and I don't want to create any delegates in my code with binding an other things. I want to wrote pseudo-asynchroused code. Something like this:
await (MyServer->RemoteMethod(parameter_1, parameter_2),
[=] (int32 return_value_1, int32 return_value_2) {
UE_LOG(MyLog, Log, TEXT("RemoteMethod called with result %i %i"), return_value_1, return_value_2);
});
I'm not too strong in functional programming of latest C++ versions.
But I know there is things like std::function. Can this help me?
Also I need that code must be cross-platform.