Class TimeoutHelper
Can be used independently or assigned to WaitForConditionOrTimeOut(Func<Boolean>, TimeoutHelper) in the event the default timeout period needs to be adjusted
Inherited Members
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()