Is this context cancelled.
()
| 459 | * Is this context cancelled. |
| 460 | */ |
| 461 | public boolean isCancelled() { |
| 462 | if (cancellableAncestor == null) { |
| 463 | return false; |
| 464 | } else { |
| 465 | return cancellableAncestor.isCancelled(); |
| 466 | } |
| 467 | } |
| 468 | |
| 469 | /** |
| 470 | * If a context {@link #isCancelled()} then return the cause of the cancellation or |
no outgoing calls