padenot / ringbuf.js

Wait-free thread-safe single-consumer single-producer ring buffer using SharedArrayBuffer
https://ringbuf-js.netlify.app/
Mozilla Public License 2.0
201 stars 18 forks source link

Fix race condition when loading scripts #2

Closed chrisguttandin closed 4 years ago

chrisguttandin commented 4 years ago

This pull request updates the URLFromFiles() utility function to make sure it loads and concatenates the files in the given order. Previously the order was determined by the the time the promises returned by response.text() resolved.

padenot commented 4 years ago

Thanks!