registerNewFuture<T> method
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;
}