sys\system\collections\concurrent\BlockingCollection.cs (25)
271TryAddWithNoTimeValidation(item, Timeout.Infinite, new CancellationToken());
301TryAddWithNoTimeValidation(item, Timeout.Infinite, cancellationToken);
352/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param>
376/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param>
554if (!TryTake(out item, Timeout.Infinite, CancellationToken.None))
578if (!TryTake(out item, Timeout.Infinite, cancellationToken))
629/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param>
652/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param>
812TryAddToAny(collections, item, Timeout.Infinite, CancellationToken.None);
854TryAddToAny(collections, item, Timeout.Infinite, cancellationToken);
922/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param> /// <returns>The index of the collection in the <paramref name="collections"/>
951/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param>
999if (millisecondsTimeout != Timeout.Infinite)
1025while (millisecondsTimeout == Timeout.Infinite || timeout >= 0)
1057if (millisecondsTimeout != Timeout.Infinite)
1147Debug.Assert(originalWaitMillisecondsTimeout != Timeout.Infinite);
1217int returnValue = TryTakeFromAnyCore(collections, out item, Timeout.Infinite, true, cancellationToken);
1288/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param>
1320/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param>
1406if (millisecondsTimeout != Timeout.Infinite)
1418while (millisecondsTimeout == Timeout.Infinite || timeout >= 0)
1472if (millisecondsTimeout != Timeout.Infinite)
1679if (TryTakeWithNoTimeValidation(out item, Timeout.Infinite, cancellationToken, linkedTokenSource))
1781if ((totalMilliseconds < 0 || totalMilliseconds > Int32.MaxValue) && (totalMilliseconds != Timeout.Infinite))
1795if ((millisecondsTimeout < 0) && (millisecondsTimeout != Timeout.Infinite))