FAsyncTask::Cancel

Cancel the task, if possible.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Async/AsyncWork.h"

Syntax

bool Cancel()

Remarks

Cancel the task, if possible. Note that this is different than abandoning (which is called by the thread pool at shutdown).

Returns

true if the task was canceled and is safe to delete. If it wasn't canceled, it may be done, but that isn't checked here.

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