Timeout.Infinite Campo
Definição
public: int Infinite = -1;
public const int Infinite = -1;
val mutable Infinite : int
Public Const Infinite As Integer = -1
Valor do campo
Comentários
Para métodos de Threading que aceitam um millisecondsTimeout parâmetro, como Thread.Sleep(Int32) e Thread.Join(Int32) , esse valor é usado para suspender o thread indefinidamente.For threading methods that accept a millisecondsTimeout parameter, such as Thread.Sleep(Int32) and Thread.Join(Int32), this value is used to suspend the thread indefinitely. No entanto, na maioria dos casos, recomendamos que você use outras classes, como,, System.Threading Mutex Monitor EventWaitHandle ou Semaphore em vez disso, para sincronizar threads ou gerenciar recursos.However, in most cases, we recommend that you use other System.Threading classes, such as Mutex, Monitor, EventWaitHandle, or Semaphore instead, to synchronize threads or manage resources.
O valor desse campo é-1 (0xFFFFFFFF).The value of this field is -1 (0xFFFFFFFF).