https://github.com/perbu/start-stop-pattern
https://github.com/perbu/start-stop-pattern
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/perbu/start-stop-pattern
- Owner: perbu
- License: bsd-3-clause
- Created: 2023-03-19T15:23:27.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-19T15:26:56.000Z (over 3 years ago)
- Last Synced: 2025-01-20T00:47:29.166Z (over 1 year ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Stopping and starting things through a channel
I needed a way to stop and start things through a channel. The thing already took a context, so I made a wrapping
function that would take a context and a channel and stop and start based on the input from the channel.