Interface GeckoResult.CancellationDelegate

Enclosing class:
GeckoResult<T>

@AnyThread public static interface GeckoResult.CancellationDelegate
Interface used to delegate cancellation operations for a GeckoResult.
  • Method Summary

    Modifier and Type
    Method
    Description
    This method should attempt to cancel the in-progress operation for the result to which this instance was attached.
  • Method Details

    • cancel

      @NonNull default GeckoResult<Boolean> cancel()
      This method should attempt to cancel the in-progress operation for the result to which this instance was attached. See GeckoResult.cancel() for more details.
      Returns:
      A GeckoResult resolving to "true" if cancellation was successful, "false" otherwise.