cashapp / zipline

Run Kotlin/JS libraries in Kotlin/JVM and Kotlin/Native programs
Apache License 2.0
2.08k stars 159 forks source link

Use different dispatchers for cache vs code #1386

Closed swankjesse closed 4 months ago

swankjesse commented 4 months ago

The cache needs to be thread-isolated.

QuickJS needs to be thread-isolated.

But they don't need to be the same threads. This makes that possible.

This is working towards https://github.com/cashapp/zipline/issues/1385

swankjesse commented 4 months ago

I started writing a test for this and decided that the easiest way to implement this is via new EventListener events for cache hits. I’m going to do that in a separate PR as it requires its own tests!