makeRemoteFunctionReturn static method

RemoteFunctionReturn makeRemoteFunctionReturn(
  1. RemoteFunctionStatus status,
  2. RemoteFunctionRequest executionRequest
)

Implementation

static RemoteFunctionReturn makeRemoteFunctionReturn(
    RemoteFunctionStatus status, RemoteFunctionRequest executionRequest) {
  RemoteFunctionReturn remoteFunctionReturn = RemoteFunctionReturn();

  RemoteFunctionIdentifier remoteFunctionIdentifier = executionRequest.remoteFunctionIdentifier;

  remoteFunctionReturn.executionStatus = status;
  remoteFunctionReturn.remoteFunctionIdentifier = remoteFunctionIdentifier;
  remoteFunctionReturn.remoteFutureIdentifier =
      executionRequest.remoteFutureIdentifier;

  return remoteFunctionReturn;
}