fdionisi / xray

An experimental next-generation Electron-based text editor
MIT License
47 stars 0 forks source link

Use requestIdleCallback for background executor #6

Open fdionisi opened 5 years ago

fdionisi commented 5 years ago

I tried to pickup TODO in xray_wasm, but I think is not really possible to continue with this.

The idea is to use requestIdleCallback for Xray background executor, but, since the WASM code is being run in a WebWorker for the browser, we have no access to that callback.

Code is rough – this is just a POC to understand the feasibility and future steps.