diff --git a/syncbus.go b/syncbus.go index d1d1ea5..bb963ad 100644 --- a/syncbus.go +++ b/syncbus.go @@ -195,10 +195,10 @@ func (b *SyncBus) ResetSignals(keys ...string) { b.reset <- keys } -// ResetAllSignals clears all the set signals. +// Reset clears all the signals. // // If the receiver *SyncBus is nil, it is a noop. -func (b *SyncBus) ResetAllSignals() { +func (b *SyncBus) Reset() { if b == nil { return } diff --git a/syncbus_test.go b/syncbus_test.go index 9934af1..4c2097d 100644 --- a/syncbus_test.go +++ b/syncbus_test.go @@ -98,7 +98,7 @@ func TestNilResetAll(t *testing.T) { tw.done() }() - bus.ResetAllSignals() + bus.Reset() if err := tw.wait(); err != nil { t.Error(err) } @@ -284,7 +284,7 @@ func TestResetAll(t *testing.T) { bus.Signal("bar") bus.Signal("baz") - bus.ResetAllSignals() + bus.Reset() if err := bus.Wait("foo", "bar", "baz"); err != ErrTimeout { t.Error("failed to timeout") }