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