Content deleted Content added
m v2.05b - Bot T20 CW#61 - Fix errors for CW project (Reference before punctuation) |
Rescuing 4 sources and tagging 0 as dead.) #IABot (v2.0.9.5 |
||
Line 84:
== Applications ==
In addition to their fundamental use for interprocess communication, channels can be used as a primitive to implement various other concurrent programming constructs which can be realized as streams. For example, channels can be used to construct [[futures and promises]], where a future is a one-element channel, and a promise is a process that sends to the channel, fulfilling the future.<ref>"[https://sites.google.com/site/gopatterns/concurrency/futures Futures] {{Webarchive|url=https://web.archive.org/web/20201204060631/https://sites.google.com/site/gopatterns/concurrency/futures |date=2020-12-04 }}", ''[https://sites.google.com/site/gopatterns Go Language Patterns] {{Webarchive|url=https://web.archive.org/web/20201111222255/https://sites.google.com/site/gopatterns |date=2020-11-11 }}''</ref> Similarly, [[iterator]]s can be constructed directly from channels.<ref>"[https://sites.google.com/site/gopatterns/object-oriented/iterators Iterators] {{Webarchive|url=https://web.archive.org/web/20201015115025/https://sites.google.com/site/gopatterns/object-oriented/iterators |date=2020-10-15 }}", ''[https://sites.google.com/site/gopatterns Go Language Patterns] {{Webarchive|url=https://web.archive.org/web/20201111222255/https://sites.google.com/site/gopatterns |date=2020-11-11 }}''</ref>
== List of implementations ==
|