Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SignalWait ¶
func SignalWait()
Types ¶
type AbstractSubject ¶
type AbstractSubject[T any] struct { // contains filtered or unexported fields }
AbstractSubject 实现了观察者主题功能,使用时继承使用
func (*AbstractSubject[T]) AttachObserver ¶
func (s *AbstractSubject[T]) AttachObserver(ob Observer[T], data any)
func (*AbstractSubject[T]) DetachObserver ¶
func (s *AbstractSubject[T]) DetachObserver(ob Observer[T])
func (*AbstractSubject[T]) Notify ¶
func (s *AbstractSubject[T]) Notify(data T)
Click to show internal directories.
Click to hide internal directories.