255 references to Infinite
aspire (1)
Aspire.Confluent.Kafka (2)
Aspire.Hosting.Tests (1)
Aspire.StackExchange.Redis (2)
dotnet-svcutil-lib (5)
Infrastructure.Common (1)
InProcessWebSite (2)
Microsoft.AspNetCore.Components.Tests (7)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Http (1)
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Microsoft.DotNet.RemoteExecutor (1)
Microsoft.Extensions.Diagnostics (2)
Microsoft.Extensions.Hosting.Abstractions (1)
Microsoft.Extensions.ML (1)
Microsoft.Extensions.TimeProvider.Testing (1)
Microsoft.ML.AutoML (3)
Microsoft.ML.Data (2)
PresentationCore (5)
System.Collections.Concurrent (25)
System\Collections\Concurrent\BlockingCollection.cs (25)
255TryAddWithNoTimeValidation(item, Timeout.Infinite, CancellationToken.None);
285TryAddWithNoTimeValidation(item, Timeout.Infinite, cancellationToken);
336/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param>
360/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param>
513if (!TryTake(out item, Timeout.Infinite, CancellationToken.None))
537if (!TryTake(out item, Timeout.Infinite, cancellationToken))
588/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param>
611/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param>
765TryAddToAny(collections, item, Timeout.Infinite, CancellationToken.None);
807TryAddToAny(collections, item, Timeout.Infinite, cancellationToken);
875/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param> /// <returns>The index of the collection in the <paramref name="collections"/>
904/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param>
952if (millisecondsTimeout != Timeout.Infinite)
978while (millisecondsTimeout == Timeout.Infinite || timeout >= 0)
1008if (millisecondsTimeout != Timeout.Infinite)
1097Debug.Assert(originalWaitMillisecondsTimeout != Timeout.Infinite);
1167int returnValue = TryTakeFromAnyCore(collections, out item, Timeout.Infinite, true, cancellationToken);
1237/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param>
1269/// cref="System.Threading.Timeout.Infinite"/> (-1) to wait indefinitely.</param>
1354if (millisecondsTimeout != Timeout.Infinite)
1366while (millisecondsTimeout == Timeout.Infinite || timeout >= 0)
1420if (millisecondsTimeout != Timeout.Infinite)
1621while (TryTakeWithNoTimeValidation(out T? item, Timeout.Infinite, cancellationToken, linkedTokenSource))
1700if ((totalMilliseconds < 0 || totalMilliseconds > int.MaxValue) && (totalMilliseconds != Timeout.Infinite))
1714if ((millisecondsTimeout < 0) && (millisecondsTimeout != Timeout.Infinite))
System.ComponentModel.TypeConverter (4)
System.Console (1)
System.Data.Odbc (6)
System.Diagnostics.Process (6)
System.Drawing.Common (7)
System.IO.FileSystem.Watcher (1)
System.IO.Pipes (7)
System.Linq.Parallel (1)
System.Net.Http (9)
System.Net.HttpListener (8)
System.Net.NetworkInformation (2)
System.Net.Quic (2)
System.Net.Requests (21)
System.Net.Sockets (2)
System.Net.WebSockets (1)
System.Private.CoreLib (65)
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\Task.cs (20)
1173SpinThenBlockingWait(Timeout.Infinite, default);
2706Wait(Timeout.Infinite, default);
2783Wait(Timeout.Infinite, cancellationToken);
2790/// The number of milliseconds to wait, or <see cref="Timeout.Infinite"/> (-1) to
2812/// The number of milliseconds to wait, or <see cref="Timeout.Infinite"/> (-1) to
3077if (millisecondsTimeout == Timeout.Infinite && !cancellationToken.CanBeCanceled &&
3089Debug.Assert(IsCompleted || millisecondsTimeout != Timeout.Infinite);
3136bool infiniteWait = millisecondsTimeout == Timeout.Infinite;
3169returnValue = mres.Wait(Timeout.Infinite, cancellationToken);
4797bool waitResult = WaitAllCore(tasks, Timeout.Infinite, default);
4817bool waitResult = WaitAllCore(tasks, Timeout.Infinite, default);
4876/// The number of milliseconds to wait, or <see cref="Timeout.Infinite"/> (-1) to
4937WaitAllCore(tasks, Timeout.Infinite, cancellationToken);
4951/// The number of milliseconds to wait, or <see cref="Timeout.Infinite"/> (-1) to
5010WaitAllCore(span, Timeout.Infinite, cancellationToken);
5054if (millisecondsTimeout != Timeout.Infinite || cancellationToken.CanBeCanceled)
5248int waitResult = WaitAnyCore(tasks, Timeout.Infinite, default);
5314return WaitAnyCore(tasks, Timeout.Infinite, cancellationToken);
5324/// The number of milliseconds to wait, or <see cref="Timeout.Infinite"/> (-1) to
5354/// The number of milliseconds to wait, or <see cref="Timeout.Infinite"/> (-1) to
src\libraries\System.Private.CoreLib\src\System\Threading\Tasks\TaskFactory_T.cs (1)
691Timeout.Infinite,
System.ServiceModel.NetFramingBase (4)
System.ServiceModel.NetTcp (2)
System.ServiceModel.Primitives (4)
System.ServiceModel.UnixDomainSocket (2)
System.Text.RegularExpressions (5)
System\Text\RegularExpressions\GeneratedRegexAttribute.cs (5)
36public GeneratedRegexAttribute([StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options) : this(pattern, options, Timeout.Infinite)
51public GeneratedRegexAttribute([StringSyntax(StringSyntaxAttribute.Regex, nameof(options))] string pattern, RegexOptions options, string cultureName) : this(pattern, options, Timeout.Infinite, cultureName)
58/// <param name="matchTimeoutMilliseconds">A time-out interval (milliseconds), or <see cref="Timeout.Infinite"/> to indicate that the method should not time out.</param>
66/// <param name="matchTimeoutMilliseconds">A time-out interval (milliseconds), or <see cref="Timeout.Infinite"/> to indicate that the method should not time out.</param>
89/// <summary>Gets a time-out interval (milliseconds), or <see cref="Timeout.Infinite"/> to indicate that the method should not time out.</summary>
System.Text.RegularExpressions.Generator (2)
System.Threading (11)
System.Threading.Tasks.Dataflow (2)
System.Transactions.Local (3)
System.Windows.Forms.IntegrationTests.Common (1)
Testing.Tests (1)
VBCSCompiler.UnitTests (9)