]> git.codecow.com Git - nano-pow.git/commit
Unblock CPU loop.
authorChris Duncan <chris@zoso.dev>
Wed, 18 Jun 2025 20:21:44 +0000 (13:21 -0700)
committerChris Duncan <chris@zoso.dev>
Wed, 18 Jun 2025 20:21:44 +0000 (13:21 -0700)
commit81cb4f4a60718da619dbbc38972999f37a2c0f94
treec4d191e3c113aa3917f0f0faef0fcac429b4825b
parent09274d06b46842d63fc7926f94ec77d988aad74b
Unblock CPU loop.
CPU work_generate now returns a promise and iterates a limited loop before re-calling itself on the next animation frame. This unblocks the main thread and allows the environment to reload properly, i.e. refresh the browser tab.
src/lib/generate/cpu/index.ts