/chanutil

small utils for golang channels. dont use it.

Primary LanguageGoMIT LicenseMIT

chanutil

Go Reference Tests

Some utilities for interacting with channels that I use in my code.

  • Get - receive from a channel in a blocking manner, but return if a context expires.
  • Put - the same, for sending to a channel.

Currently, it's so small, that it probably makes no sense to use it. Feel free to just steal the code you want, no need to introduce unnecessary dependency on this lib. It's MIT.