diff --git a/doc.go b/doc.go index a3c4e3130ee48385a8d9aacff32fe77c95ea8409..34cf4c457ae816bc331a843f5a3d44e5ca41b996 100644 --- a/doc.go +++ b/doc.go @@ -32,9 +32,9 @@ function's output as an argument and passes it to the user. type ResponseEmitter interface { - io.Closer + Close() error + CloseWithError(error) error SetLength(length uint64) - SetError(err interface{}, code ErrorType) Emit(value interface{}) error }