registerNewFuture<T> method

RPCCompleter<T> registerNewFuture<T>(
  1. T returnDataTypeExample
)

Implementation

RPCCompleter<T> registerNewFuture<T>(T returnDataTypeExample)
{
  FutureUniqueIdentifier uniqueIdentifier =
      FutureUniqueIdentifier.makeUniqueIdentifier();

  RPCCompleter<T> completer =
      RPCCompleter<T>(openFutures, uniqueIdentifier, returnDataTypeExample);

  print("Registering future");
  openFutures.addFuture(completer);

  return completer;
}