~/talk

Behavior Of Channels

Talkat dotGo 2017 · on Monday, 2017-11-06· [go]
slides:none on file

Claim: treat channels as signaling not queues. Concrete build: a logger type using a buffered channel (capacity 10), a worker goroutine, and a WaitGroup; ten goroutines send strings to the channel while an IO device sometimes blocks. The send uses select with a default drop-on-full branch so writers never block; blocked device only stalls the logger goroutine. Result: service keeps streaming, logs are dropped under pressure and resume when the device recovers.

AI-written summary · about

  1. 0:00Introduction
  2. 1:03Logging shutdown issue
  3. 3:07Buffered channel solution
  4. 8:23Logger API and stop method
  5. 10:10Working logger demo
  6. 11:57Key takeaways
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.