TFutureBase::WaitFor

Blocks the calling thread until the future result is available or the specified duration is exceeded.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Async/Future.h

Include

#include "Async/Future.h"

Syntax

bool WaitFor
(
    const FTimespan & Duration
) const

Remarks

Blocks the calling thread until the future result is available or the specified duration is exceeded.

Returns

true if the result is available, false otherwise.

Parameters

Parameter

Description

Duration

The maximum time span to wait for the future result.

See Also

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss