Skip to content

Instantly share code, notes, and snippets.

@naokisekiguchi
Last active January 23, 2017 02:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naokisekiguchi/f41d3d63258d115627bf6a20a24c437c to your computer and use it in GitHub Desktop.
Save naokisekiguchi/f41d3d63258d115627bf6a20a24c437c to your computer and use it in GitHub Desktop.
CHIRIMENアプリベースjs
// task.js ライブラリ
const { spawn, sleep } = task;
// document 内のリソースが読み終わるのを待つ
document.addEventListener("DOMContentLoaded", () => {
// task.js の spawn 関数内では Promise が同期的に記述できる
spawn(function() {
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment