aborted property

bool get aborted

Whether the context has been cancelled or its deadline has passed.

Implementation

bool get aborted =>
    _context.cancellation.isCancelled ||
    (_context.deadline?.isExpired ?? false);