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