public static int AddToAny(BlockingCollection <T>[] collections, T item, CancellationToken cancellationToken) { return(BlockingCollection <T> .TryAddToAny(collections, item, -1, cancellationToken)); }
public static int TryAddToAny(BlockingCollection <T>[] collections, T item) { return(BlockingCollection <T> .TryAddToAny(collections, item, 0, new CancellationToken())); }