If a context #isCancelled() then return the cause of the cancellation or null if context was cancelled without a cause. If the context is not yet cancelled will always return null. The cancellation cause is provided for informational purposes only and implementations shou
()
| 475 | * should generally assume that it has already been handled and logged properly. |
| 476 | */ |
| 477 | public Throwable cancellationCause() { |
| 478 | if (cancellableAncestor == null) { |
| 479 | return null; |
| 480 | } else { |
| 481 | return cancellableAncestor.cancellationCause(); |
| 482 | } |
| 483 | } |
| 484 | |
| 485 | /** |
| 486 | * A context may have an associated {@link Deadline} at which it will be automatically cancelled. |
no outgoing calls