Utilities to split large arrays into fixed-size chunks and yield control back
to the JavaScript event loop between chunks. Used to spread CPU/FS heavy work
(e.g. first-launch dataset seeding) across multiple ticks so the JS thread and
native bridge are not monopolised by a single long, un-yielded burst.
chunk - Cooperative chunked iteration helpers
Utilities to split large arrays into fixed-size chunks and yield control back to the JavaScript event loop between chunks. Used to spread CPU/FS heavy work (e.g. first-launch dataset seeding) across multiple ticks so the JS thread and native bridge are not monopolised by a single long, un-yielded burst.