5 // SetOnce is a boolean value that can only be flipped from false to true.
12 // Returns a channel that is closed when the event is flagged.
13 func (me *SetOnce) Done() Done {
18 func (me *SetOnce) init() {
19 me.initOnce.Do(func() {
20 me.ch = make(chan struct{})
24 // Set only returns true the first time it is called.
25 func (me *SetOnce) Set() (first bool) {
26 me.closeOnce.Do(func() {
34 func (me *SetOnce) IsSet() bool {