3 ms·
This is awesome. I suppose this also means that JavaScript can use multithreading since the JVM can do this. I would love to write multithreaded JavaScript.
by samsquire 4y ago
This is awesome.
I suppose this also means that JavaScript can use multithreading since the JVM can do this. I would love to write multithreaded JavaScript.
- mike_hearn 4y agoSadly no. JS is not a thread safe language by design. However, JS can be used in multiple isolated threads simultaneously, and when they call into Java (or Kotlin or Scala etc) that codepath is shared, so you can use Java objects to share data between JavaScript contexts.