There's more...

If you need to react to the messages from your clients in a different thread, you can use channel, which we looked at earlier in the chapter. One use case for this would be programming an online video game. You'll want to aggregate all input from your players, react to it by simulating your world, and then broadcast local changes to the players, with each of these tasks happening concurrently in a single thread.

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

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