diff options
| author | Mhd Sulhan <m.shulhan@gmail.com> | 2016-02-09 02:06:16 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2020-01-25 14:11:59 +0700 |
| commit | 0f1472355b317bdf488d8e6d190e069e91d7f567 (patch) | |
| tree | 82892be51ff4c0a8f1cd0634066ac8944d3d76d1 | |
| parent | 96a1fea6f098163f685f74d5b5114f1034c43f31 (diff) | |
| download | golang-id-tour-0f1472355b317bdf488d8e6d190e069e91d7f567.tar.xz | |
Sync with golang/tour@cf672f18b3ea5584028440a6624c7c6c94c6d584
| -rw-r--r-- | content/concurrency.article | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/content/concurrency.article b/content/concurrency.article index f885f84..867e682 100644 --- a/content/concurrency.article +++ b/content/concurrency.article @@ -43,8 +43,9 @@ Seperti map dan slice, kanal harus dibuat sebelum digunakan: Secara bawaan, pengiriman dan penerimaan ditahan sampai sisi yang lain siap. Hal ini membolehkan goroutine untuk melakukan sinkronisasi tanpa melakukan penguncian secara eksplisit atau menggunakan variabel kondisi. -The example code sums the numbers in a slice, distributing the work between two goroutines. -Once both goroutines have completed their computation, it calculates the final result. +Contoh kode menjumlahkan angka yang ada di `slice`, dengan mendistribusikan +kerja antara dua goroutine. +Saat kedua goroutine selesai, hasil akhirnya kemudian akan dihitung. .play concurrency/channels.go |
