From d7bb3a537c8a3a9e060493f9b82fa17978b0bf2b Mon Sep 17 00:00:00 2001 From: Edward Date: Fri, 8 May 2020 17:19:36 +0800 Subject: [PATCH] move concurrency/fanout to messaging/fan & move concurrency/n_barrier to concurrency/barrier/n_barrier --- README.md | 2 +- concurrency/{ => barrier}/n_barrier/main.go | 0 {concurrency => messaging}/fan/fan_in_out_test.go | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename concurrency/{ => barrier}/n_barrier/main.go (100%) rename {concurrency => messaging}/fan/fan_in_out_test.go (100%) diff --git a/README.md b/README.md index aa222d7..3aafcf7 100644 --- a/README.md +++ b/README.md @@ -88,7 +88,7 @@ A curated collection of idiomatic design & application patterns for Go language. |:-------:|:----------- |:------:| | [Fan-In](/messaging/fan_in.md) | Funnels tasks to a work sink (e.g. server) | ✔ | | [Fan-Out](/messaging/fan_out.md) | Distributes tasks among workers (e.g. producer) | ✔ | -| [Futures & Promises](/messaging/futures_promises.md) | Acts as a place-holder of a result that is initially unknown for synchronization purposes | ✘ | +| [Futures & Promises](/messaging/futures_promises.md) | Acts as a place-holder of a result that is initially unknown for synchronization purposes | ✔ | | [Publish/Subscribe](/messaging/publish_subscribe.md) | Passes information to a collection of recipients who subscribed to a topic | ✔ | | [Push & Pull](/messaging/push_pull.md) | Distributes messages to multiple workers, arranged in a pipeline | ✘ | diff --git a/concurrency/n_barrier/main.go b/concurrency/barrier/n_barrier/main.go similarity index 100% rename from concurrency/n_barrier/main.go rename to concurrency/barrier/n_barrier/main.go diff --git a/concurrency/fan/fan_in_out_test.go b/messaging/fan/fan_in_out_test.go similarity index 100% rename from concurrency/fan/fan_in_out_test.go rename to messaging/fan/fan_in_out_test.go