flow control mechanism is a little bit hard to understand. can you guys add some test to demonstrate its usage?