github.com/onflow/flow-go@v0.33.17/module/observable/observable.go (about)

     1  package observable
     2  
     3  type Observable interface {
     4  	// indicates that the observer is ready to receive notifications from the Observable
     5  	Subscribe(observer Observer)
     6  	// indicates that the observer no longer wants to receive notifications from the Observable
     7  	Unsubscribe(observer Observer)
     8  }