Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

README.md

AsyncGlobalEvalFunction

A simple way to asynchronously defer the execution of javascript code stored as a string to prevent main thread blockage. Example:

AsyncGlobalEvalFunction("function(i){console.log('Hello World ', i)}", function(f){f(1); f(2); f(3)});
AsyncGlobalEvalFunction("x => x * x", function(f){console.log( f(8) )});
AsyncGlobalEvalFunction("async function * () {}", f => console.log( "Asynchronous generator function (what did you expect?): ", f ));

About

A simple way to asynchronously defer execution of code stored in a string to prevent main thread blockage

Topics

Resources

License

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.