LoginSignup
0
1

More than 5 years have passed since last update.

tmlib.jsのFlowと同じようにphina.jsのFlowを使う

Posted at

個人的なメモとして。

var tasks = [];
// 何がしかの非同期的な待ち処理
tasks.push(phina.util.Flow(function (resolve) {
    temp.one('finishEvent', function () {
        resolve();
    });
}));

// 全ての待ち処理が終わったあとの処理
phina.util.Flow.all(tasks).then(function () {
    //TODO
});
0
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1