landelare / ue5coro

A C++20 coroutine implementation for Unreal Engine 5 that feels almost native.
BSD 3-Clause Clear License
543 stars 48 forks source link

How to cancel TCoroutine<> if its already running #25

Closed xeon321 closed 6 months ago

xeon321 commented 6 months ago

Hi, thanks for the plugin but I am unsure of how to cancel a coroutine that is already running. For example: On input -> run coroutine On input again before previous coroutine finished -> cancel the running coroutine -> restart a new one

Can you please explain or show some examples on how to achieve this?

landelare commented 6 months ago

There's an entire documentation page on cancellation. Please use community forums for support.