- tensorstore.Future.cancelled(self) bool
Queries whether the asynchronous operation has been cancelled.
Example
>>> promise, future = ts.Promise.new() >>> future.cancelled() False >>> future.cancel() >>> future.cancelled() True >>> future.exception() Traceback (most recent call last): ... ...CancelledError...