What are the two ways to make a coroutine's computation code cancellable?
Call the yield() function or check the isActive property.
yield()
isActive
Call the cancelled() function or check the isActive property.
cancelled()
Call the stillActive() function or check the isCancelled property.
stillActive()
isCancelled
Call the checkCancelled() function or check the isCancelled property.
checkCancelled()