Was this page helpful?

TryEnqueue Method

    TryEnqueue(T item)

    public virtual bool TryEnqueue(T item);
    Try to add an item to the queue.

    Parameters

    Name Type Description
    item T Item to add to queue.

    Returns

    Type: bool
    Always returns True.

    TryEnqueue(Action<T> callback)

    public virtual bool TryEnqueue(Action<T> callback);
    Try to add a consumer to the queue.

    Parameters

    Name Type Description
    callback Action<T> Consumer to add to queue.

    Returns

    Type: bool
    Always returns True.
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by