Skip to content

Issue #1177: Fix doAfterSubscribe popping cancelables in the wrong order#1187

Merged
Avasil merged 1 commit intomonix:masterfrom
Avasil:doOnSubscribe-cancel-issue
May 26, 2020
Merged

Issue #1177: Fix doAfterSubscribe popping cancelables in the wrong order#1187
Avasil merged 1 commit intomonix:masterfrom
Avasil:doOnSubscribe-cancel-issue

Conversation

@Avasil
Copy link
Collaborator

@Avasil Avasil commented May 22, 2020

Fixes #1177


val ref = SingleAssignCancelable()
val conn = StackedCancelable(List(cancelable, ref))
val conn = StackedCancelable(List(ref, cancelable))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is popped when task finishes running but StackedCancelable works in FIFO order so it was removing cancelable

@Avasil Avasil merged commit e152376 into monix:master May 26, 2020
@Avasil Avasil deleted the doOnSubscribe-cancel-issue branch November 14, 2020 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

The doOnSubscriptionCancel side-effect not executed in combination with doAfterSubscribe

1 participant