要約 HTML5 Web Workers では時間のかかる処理を別スレッドで実行できますが、C言語のように、グローバル変数を経由して中断の指示を出すことができません。 この記事を書いている時点では、Chrome のみ FileSystem API で作ったファイルを共有することで、(強引に)これを実現することができます。 [Summary: Pause And Resume on Web Workers] HTML5 Web Workers enables you to run heavy tasks on other threads. However, you cannot break loop on the worker thread via global variables like C language. As of now, sharing a file created by F
![Tumblr](https://cdn-ak-scissors.b.st-hatena.com/image/square/080414a44a202c306e36c8362f343d1ae6968b66/height=288;version=1;width=512/https%3A%2F%2Fassets.tumblr.com%2Fimages%2Fog%2Ffb_landscape_share.png)