2 ms·
Sadly 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 Kotl
by mike_hearn 4y ago
Sadly 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.