My favorite thing about channels is how they're a universal synchronization primitive. A channel is not just a channel, but also: - a mutex - a semaphore - a wait group - a parker - and a lot more... 1/5
-
Show this thread
-
Replying to @stjepang
(not trolling) what do you mean by channel in this context? (also couldn't find context from searching around your tweets)
1 reply 0 retweets 1 like
Replying to @ikrimae
I mean a concurrent queue that can be accessed by multiple threads and closed (or "disconnected"). Examples: https://tour.golang.org/concurrency/2 https://doc.rust-lang.org/std/sync/mpsc/ https://docs.rs/crossbeam-channel/0.4.2/crossbeam_channel/ …
1:29 PM - 17 May 2020
0 replies
0 retweets
3 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.