Advanced Topics
This chapter will cover more advanced topics that may not be necessary for most users, but can be useful for those who need them.
It will cover:
- Managing asynchronous JS, including promises, and background tasks
- Call sync and async rust from inside the JS runtime, as well as transfering data between the two
- Extending the JS runtime with more advanced custom functionality (extensions and op2)
- Creating a static runtime instance
- Running multiple runtimes in parallel, and sharing runtime data between threads
- NodeJS compatibility, including using the NodeJS standard library
- Restricting access from inside a non-sandboxed JS runtime
- Using snapshots to increase startup time