What is thread confinement?

Thread confinement, as its name suggests, means confining all the coroutines accessing a shared state so that they execute on a single thread. This means that the state is no longer shared between threads: only one thread will modify the state.

This solution is great if you know that having all the coroutines modifying the state in the same thread will not negatively affect the performance of your application.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.55.198