In game development especially, a function that can cancel asynchronous execution midway is almost essential.