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