other/Scripts/Network/RPCNet/Base/AsyncCollection.cs
/// <summary>Takes an item from the AsyncCollection.</summary>
/// <returns>The item removed from the collection.</returns>
/// <exception cref="T:System.InvalidOperationException">The AsyncCollection is empty and has been marked
/// as complete with regards to additions.</exception>
/// <exception cref="T:System.ObjectDisposedException">The AsyncCollection has been disposed.</exception>
Takes an item from the AsyncCollection.
Takes an item from the AsyncCollection .
public T Take(CancellationToken cancellationToken = new CancellationToken())
        {
            if (TryTake(out T result, Timeout.Infinite, cancellationToken))
                return result;
            throw new InvalidOperationException("Can't take when done");
        }
public T Take ( CancellationToken cancellationToken = new CancellationToken ( ) ) { if ( TryTake ( out T result , Timeout . Infinite , cancellationToken ) ) return result ; throw new InvalidOperationException ( " " ) ; }
Takes an item from the AsyncCollection.
Takes an item from the AsyncCollection .
The item removed from the collection.
The item removed from the collection .
The AsyncCollection is empty and has been marked
as complete with regards to additions.
The AsyncCollection is empty and has been marked as complete with regards to additions .
The AsyncCollection has been disposed.
The AsyncCollection has been disposed .
cancellationToken
CancellationToken