~/talk

Semaphores

TalkinFrenchat dotGo 2019 · on Monday, 2019-03-25· [go]
slides:none on file

Shows two Go semaphore designs built on buffered channels: a token pool preloaded with N tokens that goroutines take, and a zeroed channel where goroutines write to claim space. Both use the channel-as-token-pool pattern with blocking semantics plus select-based timeout/cancellation to avoid long waits; examples include a 12-capacity pool, atomic multi-token acquisition for friend groups, and a browser simulation with GitHub code.

AI-written summary · about

~/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.