github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/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 }