Navigation
API > API/Runtime > API/Runtime/Core
Description
Queue the calling thread to wait if CanWait returns true. BeforeWait is only called if CanWait returns true.
| Name | UE::ParkingLot::WaitUntil |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Async/ParkingLot.h |
| Include Path | #include "Async/ParkingLot.h" |
namespace UE
{
namespace ParkingLot
{
FWaitState UE::ParkingLot::WaitUntil
(
const void * Address,
TFunctionWithContext < bool> CanWait,
TFunctionWithContext < void> BeforeWait,
FMonotonicTimePoint WaitTime
)
}
}
Parameters
| Name | Remarks |
|---|---|
| Address | Address to use as the key for the queue. The same address is used to wake the thread. |
| CanWait | Function called while the queue is locked. A return of false cancels the wait. |
| BeforeWait | Function called after the queue is unlocked and before the thread waits. |
| WaitTime | Absolute time after which waiting is automatically canceled and the thread wakes. |