CancelableFuture<T> extension

on

Methods

cancelOn(CancellationToken? cancellationToken) Future<T>
Returns a Future that either returns the result or error of this Future or contains an Exception when the CancellationToken is notified before this Future has completed.