SHARE
TWEET

Untitled

a guest Mar 24th, 2019 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package main
  2.  
  3. func producer(food chan byte) {
  4.  
  5. }
  6.  
  7. func cook(food, cooked chan byte) {
  8.  
  9. }
  10.  
  11. func consumer(cooked chan byte) {
  12.  
  13. }
  14.  
  15. func main() {
  16.     food := make(chan byte)
  17.     cooked := make(chan byte)
  18.  
  19.     go producer(food)
  20.     go cook(food, cooked)
  21.     go consumer(cooked)
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top