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