- Communicating Sequential Processes (CSP)
- Generator 함수에 메소드를 설정할 수는 있으나 this를 쓸 수는 없다
-
TAMING THE ASYNCHRONOUS BEAST WITH CSP CHANNELS IN JAVASCRIPT1https://jlongster.com/Taming-the-Asynchronous-Beast-with-CSP-in-JavaScript
-
Transducer 패턴을 일반화 해서 사용하기위해, 위의 코드 처럼 take()가 consumer 역활을 하지만 yield로 인해 순차적으로 돌기위해선 csp.go() 함수와 같은 helper가 필요하다.
References
↑1 | https://jlongster.com/Taming-the-Asynchronous-Beast-with-CSP-in-JavaScript |