Answer the question
In order to leave comments, you need to log in
$q, Promises or task?
All languages have synchronous task libraries that I'm terribly used to.
Type -
first(/** создать объект и передать в него какие-то аргументы*/)
.then(/** получить объект полученный на предыдущем шаге и что-то с ним сделать*/)
.then(/**получить объект полученный на предыдущем шаге и что-то с ним сделать */)...
Answer the question
In order to leave comments, you need to log in
Promises, awaitables, tasks... they are all one and the same - one-time operations. That is, they are not suitable for processing periodic events. And yes, in the context of angular, you can use any implementation that supports then, it will convert them into its own promises. In general, it is better to use either native promises, which are already available in all kinds of chrome, or $q from Angular.
what you describe - event stream. for this you can take https://baconjs.github.io/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question