Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Misc/Timeout.h |
| Include | #include "Misc/Timeout.h" |
Syntax
class FTimeout
Remarks
Utility class to handle timeouts usage:
FTimeout Timeout(FTimespan::FromMilliseconds(2)); while (!Timeout.IsExpired()) { ... }
Constructors
Functions
| Type | Name | Description | |
|---|---|---|---|
| FTimespan | |||
| uint32 | Intended for use in waiting functions, e.g. `FEvent::Wait()_ returns the whole number (rounded up) of remaining milliseconds, clamped into [0, MAX_uint32] range | ||
| FTimespan | |||
| FTimespan | |||
| bool | IsExpired () |
||
| FTimeout | Never () |
Operators
| Type | Name | Description | |
|---|---|---|---|