Was this page helpful?

TryDequeue Method

    TryDequeue(TimeSpan timeout, out T item)

    public virtual bool TryDequeue(TimeSpan timeout, out T item);
    Attempt to dequeue an item from the queue.

    Remarks

    Dequeue timeout can occur either because a lock could not be acquired or because no item was available.

    Parameters

    Name Type Description
    timeout TimeSpan Time to wait for an item to become available.
    item out T The location for a dequeue item.

    Returns

    Type: bool
    True if an item was dequeued, False if the operation timed out instead.
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by