docs.unity.cn
    Show / Hide Table of Contents

    Class TimeoutHelper

    Can be used independently or assigned to WaitForConditionOrTimeOut(Func<Boolean>, TimeoutHelper) in the event the default timeout period needs to be adjusted

    Inheritance
    Object
    TimeoutHelper
    Namespace: Unity.Netcode.TestHelpers.Runtime
    Syntax
    public class TimeoutHelper

    Constructors

    TimeoutHelper(Single)

    Declaration
    public TimeoutHelper(float timeOutPeriod = 2F)
    Parameters
    Type Name Description
    Single timeOutPeriod

    Properties

    TimedOut

    Declaration
    public bool TimedOut { get; }
    Property Value
    Type Description
    Boolean

    Methods

    HasTimedOut()

    Declaration
    public bool HasTimedOut()
    Returns
    Type Description
    Boolean

    Start()

    Declaration
    public void Start()

    Stop()

    Declaration
    public void Stop()
    Back to top Copyright © 2023 Unity Technologies
    Generated by DocFX
    on Monday, April 3, 2023
    Terms of use