PhotonWire.Server.ServerToServer.PhotonWireOutboundS2SPeer.TryGetAndRemoveFuture C# (CSharp) Method

TryGetAndRemoveFuture() private method

private TryGetAndRemoveFuture ( int messageId, TaskCompletionSource &future ) : bool
messageId int
future TaskCompletionSource
return bool
        bool TryGetAndRemoveFuture(int messageId, out TaskCompletionSource<OperationResponse> future)
        {
            lock (operationResponseFuture)
            {
                var success = operationResponseFuture.TryGetValue(messageId, out future);
                if (success)
                {
                    operationResponseFuture.Remove(ReservedParameterNo.MessageId);
                }
                return success;
            }
        }