IsSet returns whether the flag was set since the last Refresh. This does not reset the Flag itself, you'll need to call Refresh for that.
()
| 70 | // IsSet returns whether the flag was set since the last Refresh. |
| 71 | // This does not reset the Flag itself, you'll need to call Refresh for that. |
| 72 | func (f *Flag) IsSet() bool { |
| 73 | return f.flag.IsSet() |
| 74 | } |
| 75 | |
| 76 | // Refresh fetches the current state from the broadcasting flag. |
| 77 | func (f *Flag) Refresh() { |
no outgoing calls
no test coverage detected