whortaneto / chimera-js

Javascript library to facilitate the use of the web workers api.
MIT License
4 stars 0 forks source link

Implement new API to run functions in web worker #7

Closed whortaneto closed 7 years ago

whortaneto commented 7 years ago

Implement a new API exposed by the Chimera object to import a object with function to the web worker and execute them there.

Something like:

    chimera.exportToWorker({
        executeFibonacci: _fibonacci
     }).then((worker) => {
       worker.executeFibonacci
     })