oshifty / vision

A new and intuitive way of controlling intelligent devices developed from first principles for the event industry.
https://oshifty.github.io/vision/
MIT License
3 stars 0 forks source link

🐛🐎 validation blocks main thread #8

Closed lukas-runge closed 1 year ago

lukas-runge commented 1 year ago

Currently running a file against validation happens synchronously on the main thread. As the typescript-json-schema library does not support async / await, it needs to be run by a worker_thread / in a workerpool instead to not block the main thread during execution and return a promise that the ui can act upon.

lukas-runge commented 1 year ago

Rewrote validation functions in 80eb2be956f2b421977e17477a052900bf032bd1 to only require and return serializable data. Should now be able to run in a worker_thread. 🥳