dynselect: rename file
dynselect: initial implementation
This package implements a highly-situational, reflection-based select
statement. It allows you to construct a runtime-modifiable pool of channels that are monitored for close with a select
. This is useful primarily when monitoring a pool of contexts for cancellation if you need to perform some additional cleanup after detecting the context cancellation. See the tests for some example usages.
If you don't understand why this is useful, stay away. You definitely don't need it, and it may yet prove to be a bad idea in practice.
Dual UNLICENSE/MIT