Versions in this module Expand all Collapse all v1 v1.0.0 Jan 31, 2021 Changes in this version + func NewDemoSignal4() *demoSignal4 + type DemoSignal1 struct + func NewDemoSignal1() *DemoSignal1 + func (s *DemoSignal1) Connect(fn func(string)) + func (s *DemoSignal1) Disconnect(key int64) (ok bool) + func (s *DemoSignal1) OnDisconnect(key int64, fn func()) + func (s *DemoSignal1) Send(fn func(func(string))) + func (s *DemoSignal1) WithDisconnector(fn func(string)) int64 + type DemoSignal2 struct + func NewDemoSignal2() *DemoSignal2 + func (s *DemoSignal2) Connect(fn DemoSignal2Func) + func (s *DemoSignal2) Disconnect(key int64) (ok bool) + func (s *DemoSignal2) OnDisconnect(key int64, fn func()) + func (s *DemoSignal2) Send(fn func(DemoSignal2Func)) + func (s *DemoSignal2) WithDisconnector(fn DemoSignal2Func) int64 + type DemoSignal2Func func(int, string, string) + type DemoSignal3 struct + func NewDemoSignal3() *DemoSignal3 + func (s *DemoSignal3) Connect(fn func(string) string) + func (s *DemoSignal3) Disconnect(key int64) (ok bool) + func (s *DemoSignal3) OnDisconnect(key int64, fn func()) + func (s *DemoSignal3) Send(fn func(func(string) string)) + func (s *DemoSignal3) WithDisconnector(fn func(string) string) int64 + type DemoSignal4Func func(int)