WIP: t31135461 / Refine jest-worker API #6676
Node 10 shipped with a "threading API" that uses SharedBuffers to communicate between the main process and its child threads. Being jest-worker a parallelization library, we can take advantage of this API when available. At the same time, we'll decouple our scheduling logic from our communication logic for better re-usability.
Here are some key things:
Clean up types, create missing interfaes and make Flow and Jest happy