Sequencing
This lesson will teach you about a pattern used for sequencing in a program by sending channel over a channel.
We'll cover the following...
We'll cover the following...
Remember the code from the last lesson where we unblock the two receive operations. Here is the code for you to recap:
What if we don’t want to block the code and introduce sequence to our program instead of randomness? Let’s see how we approach this problem.
Imagine a cooking competition. You are participating in it with your partner.
The rules of the game are:
-
There are three rounds in the competition.
-
In each round, both partners will have to come up with their own dishes.
-
A player cannot move on to the next round until their partner is done with their ...