Codebase list golang-github-vbauerster-mpb / 450ef7e
godocs Vladimir Bauer 7 years ago
1 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
9595
9696 // WC is a struct with two public fields W and C, both of int type.
9797 // W represents width and C represents bit set of width related config.
98 // A decorator should embed WC, in order to become Syncable.
9899 type WC struct {
99100 W int
100101 C int
131132 }
132133 }
133134
135 // Syncable is implementation of Syncable interface.
134136 func (wc *WC) Syncable() (bool, chan int) {
135137 return (wc.C & DSyncWidth) != 0, wc.wsync
136138 }