Search Results for

    Show / Hide Table of Contents

    Class TaskExtensions

    Inheritance
    object
    TaskExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.TestKit.Extensions
    Assembly: Akka.TestKit.dll
    Syntax
    public static class TaskExtensions

    Methods

    | Edit this page View Source

    AwaitWithTimeout(Task, TimeSpan, CancellationToken)

    Declaration
    public static Task<bool> AwaitWithTimeout(this Task parentTask, TimeSpan timeout, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    Task parentTask
    TimeSpan timeout
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<bool>
    | Edit this page View Source

    WithTimeout<T>(Task<T>, TimeSpan, CancellationToken)

    Declaration
    public static Task<T> WithTimeout<T>(this Task<T> parentTask, TimeSpan timeout, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    Task<T> parentTask
    TimeSpan timeout
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<T>
    Type Parameters
    Name Description
    T
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET