Azure / Azure/azure-libraries-for-java

Support cancellation for async methods

Open
#616 0 comments 1 reaction 0 assignees View on GitHub
customer-reported Question Subscription
Dominant language
Java
Stars
97
Forks
102
PR merge metrics
No merged PRs in 30d

Description

Currently azure java libraries are depend on rxjava1 where `Completable` and `Observable` in `*Async` method results do not support any cancellation methods and offer only `Subscription#unsubscribe`. In rxjava2 exists [Disposable#dispose](http://reactivex.io/RxJava/javadoc/io/reactivex/disposables/Disposable.html) which allows to terminate async execution.

It makes impossible to support cooperative cancellation for such methods, e.g. in [Kotlin coroutines](https://github.com/Kotlin/kotlinx.coroutines/blob/master/docs/cancellation-and-timeouts.md#cancellation-and-timeouts) which has [rxjava2 extensions](https://github.com/Kotlin/kotlinx.coroutines/blob/master/reactive/kotlinx-coroutines-rx2/README.md).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.