Search Results for

    Show / Hide Table of Contents

    Interface ITimeoutTimer

    A thread-safe class for running timeouts on asynchronous methods.

    Namespace: FM.LiveSwitch
    Assembly: FM.LiveSwitch.dll
    Syntax
    public interface ITimeoutTimer

    Methods

    Start(Int32)

    Starts the timer.

    Declaration
    void Start(int timeout)
    Parameters
    Type Name Description
    System.Int32 timeout

    The timeout length, in milliseconds.

    Stop()

    Stops the timer, notifying the calling code if the timeout has already elapsed.

    Declaration
    bool Stop()
    Returns
    Type Description
    System.Boolean

    true if the timer was successfully stopped in time; false if the timeout elapsed and the timeout callback has been invoked.

    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.15.0