[android-components](../../index.md) / [mozilla.components.browser.engine.gecko](../index.md) / [org.mozilla.geckoview.GeckoResult](index.md) / [asCancellableOperation](./as-cancellable-operation.md)

# asCancellableOperation

`fun <T> `[`GeckoResult`](https://mozilla.github.io/geckoview/javadoc/mozilla-central/org/mozilla/geckoview/GeckoResult.html)`<`[`T`](as-cancellable-operation.md#T)`>.asCancellableOperation(): `[`CancellableOperation`](../../mozilla.components.concept.engine/-cancellable-operation/index.md) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/engine-gecko-beta/src/main/java/mozilla/components/browser/engine/gecko/GeckoResult.kt#L36)

Converts a [GeckoResult](https://mozilla.github.io/geckoview/javadoc/mozilla-central/org/mozilla/geckoview/GeckoResult.html) to a [CancellableOperation](../../mozilla.components.concept.engine/-cancellable-operation/index.md).

