Closed vitaly-t closed 4 years ago
If subscription event onCancel can accept a boolean flag selfCancel to indicate when it was a self-cancel request, versus cancelAll call, then some code can be simplified, like toPromise method.
onCancel
selfCancel
cancelAll
It is a small improvement, for consideration.
After a few attempts, found it not worth the effort.
If subscription event
onCancel
can accept a boolean flagselfCancel
to indicate when it was a self-cancel request, versuscancelAll
call, then some code can be simplified, like toPromise method.It is a small improvement, for consideration.