Show / Hide Table of Contents

Class TimeoutExtensions

Provides extension for Timeout type.

Inheritance
object
TimeoutExtensions
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: DotNext.Threading
Assembly: DotNext.dll
Syntax
public static class TimeoutExtensions

Methods

View Source

IsExpired(in Timeout, TimeProvider)

Indicates that the timeout is occurred.

Declaration
public static bool IsExpired(this in Timeout timeout, TimeProvider provider)
Parameters
Type Name Description
Timeout timeout
TimeProvider provider

The time provider.

Returns
Type Description
bool

true if timeout is occurred; otherwise, false.

View Source

get_RemainingTime(in Timeout)

Gets the remaining time, or Zero if timeout is occurred.

Declaration
public static TimeSpan get_RemainingTime(in Timeout timeout)
Parameters
Type Name Description
Timeout timeout
Returns
Type Description
TimeSpan
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾