For example:
(async () => {
const a = await promise();
console.log(a);
})()
The promise function can be resolved multiple times. How can the function after await be executed repeatedly?
淡淡烟草味2017-06-12 09:33:00
Promise is a single-value push type.
You can use the Observable of RxJs and you can push multiple values