removeFuture method

bool removeFuture(
  1. AbstractRPCCompleter future
)

Implementation

bool removeFuture(AbstractRPCCompleter future)
{
    print("Remove future");
    FutureUniqueIdentifier futureIdentifier = future.getUniqueIdentifier();

    if(futures.containsKey(futureIdentifier))
    {
        AbstractRPCCompleter other = futures[futureIdentifier]!;
        if(other == future)
        {
            futures.remove(futureIdentifier);
            return true;
        }
    }
    return false;
}