i like to use in my code a design pattern that i don't know the name... actually, i only saw one guy using in my entire dev life.
Promise
.resolve({})
.then(someFunc1)
.then(someFunc2)
.then(someFunc3)
.then(someFunc4)
.then(someFunc5)
.then(someFunc6)
I'm using Promises to control the flow if my program, passing the result of one operation to the second, and so on...
(I'm using like this because i have async operations, just to be clear)
I would like to know the name of this design pattern, to read more about how to improve it.
Thanks!
Aucun commentaire:
Enregistrer un commentaire