I’m trying to cancel an FAsyncTask that I created, and the API here says that I can use Cancel() for that. However when I try to use it, I’m told that FAsyncTask has no member “Cancel”, and going through the source code here in AsyncWork.h does indeed show that there is no such function.
Am I missing something somewhere, or is this a bug?
Hey bloodelves88,
The GitHub you linked was not the most current branch. Here is the 4.13.1 branch:
https://github.com/EpicGames/UnrealEngine/blob/4.13.1-release/Engine/Source/Runtime/Core/Public/Async/AsyncWork.h#L432
Which has the Cancel function.
If you do not have this, I would recommend that you update the most current stable release, which is 4.13.1.
Please let me know if you have any more issues.
Ah, my bad. Not sure how I ended up looking at an older branch.
Yes I see it in the 4.13.1 release, thanks!