Question: What are the two ways to make a coroutine's computation code cancellable?

  1. Call the `yield()` function or check the `isActive` property.
  2. Call the `cancelled()` function or check the `isActive` property.
  3. Call the `stillActive()` function or check the `isCancelled` property.
  4. Call the `checkCancelled()` function or check the `isCancelled` property.

Answer: The correct answer of the above question is Option A:Call the `yield()` function or check the `isActive` property.