Azure / Azure/azure-libraries-for-java

Support cancellation for async methods

Offen
#616 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
customer-reported Question Subscription
Vorherrschende Sprache
Java
Sterne
97
Forks
102
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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).

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Start by examining the Azure Java libraries' *Async methods and their RxJava 1 Completable and Observable results. Compare the available cancellation behavior with RxJava 2's Disposable and the linked Kotlin coroutine cancellation use case. Done means the affected async APIs provide a defined cooperative cancellation mechanism.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
api
Issue-Typ
Feature
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.