github.com/koko1123/flow-go-1@v0.29.6/module/observable/observer.go (about) 1 package observable 2 3 type Observer interface { 4 // conveys an item that is emitted by the Observable to the observer 5 OnNext(interface{}) 6 // indicates that the Observable has terminated with a specified error condition and that it will be emitting no further items 7 OnError(err error) 8 // indicates that the Observable has completed successfully and that it will be emitting no further items 9 OnComplete() 10 }