Rate limiting with channels and tickers
A token bucket refills tokens on a ticker; callers consume tokens to proceed. Used in APIs, scrapers, and anywhere "slow down" is a feature.
Run and observe how many requests pass immediately vs. get throttled. Then imagine adding context cancellation — you are thinking like a Go SRE.
Output
Press Run to execute your code.