Lightweight implementation of promises

后端 未结 7 1543
独厮守ぢ
独厮守ぢ 2021-02-02 17:09

I am building a simple charting tool. When a user chooses a data source and a chart type, both the data and the script for the specific chart (.js) are loaded and then the code

7条回答
  •  情歌与酒
    2021-02-02 17:38

    I built something like this a while back that I called "when-then". I wanted something that would say, "Load all of these things, then do something when they're done".

    https://github.com/geuis/when-then

    I was inspired by the promises idea, but wanted something a little simpler for simple tasks.

提交回复
热议问题