Async paradigm has criticisms -- namely, watching what's inside, and cancelling.
Observable is a solution to this. A biggest player in this is RxJS. The pattern is not limited to JavaScript. (Not sure if the library started from Java, actually.)
Triggering changes from outside is possible for observables too.
Aha, now I realized. You cannot pause async function but you can do it with generators. I did not think about that. Thank you for your reply. You were very helpful. I have never worked with RxJS and I will certainly take a look.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
co
seems old -- 5 years ago.Async paradigm has criticisms -- namely, watching what's inside, and cancelling.
Observable is a solution to this. A biggest player in this is RxJS. The pattern is not limited to JavaScript. (Not sure if the library started from Java, actually.)
Triggering changes from outside is possible for observables too.
Aha, now I realized. You cannot pause async function but you can do it with generators. I did not think about that. Thank you for your reply. You were very helpful. I have never worked with RxJS and I will certainly take a look.