Synchronous communication between threads using `Atomics.wait()`. [See Partytown](https://partytown.builder.io/how-does-partytown-work)