concurrency/generator: implement generator pattern

This commit is contained in:
legendtkl
2016-09-06 15:45:18 +08:00
committed by Tamer Tas
parent 90f5b5b1a5
commit d05638adac
3 changed files with 50 additions and 1 deletions

View File

@@ -67,7 +67,7 @@ A curated collection of idiomatic design & application patterns for Go language.
| [Bounded Parallelism](/concurrency/bounded_parallelism.md) | Completes large number of independent tasks with resource limits | ✔ |
| [Broadcast](/concurrency/broadcast.md) | Transfers a message to all recipients simultaneously | ✘ |
| [Coroutines](/concurrency/coroutine.md) | Subroutines that allow suspending and resuming execution at certain locations | ✘ |
| [Generators](/concurrency/generator.md) | Yields a sequence of values one at a time | |
| [Generators](/concurrency/generator.md) | Yields a sequence of values one at a time | |
| [Reactor](/concurrency/reactor.md) | Demultiplexes service requests delivered concurrently to a service handler and dispatches them syncronously to the associated request handlers | ✘ |
| [Parallelism](/concurrency/parallelism.md) | Completes large number of independent tasks | ✔ |
| [Producer Consumer](/concurrency/producer_consumer.md) | Separates tasks from task executions | ✘ |