Skip to content

Commit d9fcfdb

Browse files
committed
Mention ordering of callback invocations in the readme
1 parent ff3fec2 commit d9fcfdb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,13 @@ if (success) {
139139
}
140140
```
141141

142+
Subscriber API allows following combinations of `onNext`, `onCompleted` and `onError` callback invocations:
143+
* zero or more `onNext` followed by `onCompleted` when operation was successful. `onError` will not be invoked
144+
in this case
145+
* zero or more `onNext` followed by `onError` when operation failed. Callback `onError` might be invoked after
146+
couple `onNext` invocations because records are streamed lazily by the database. `onCompleted` will not be invoked
147+
in this case
148+
142149
## Building
143150

144151
npm install

0 commit comments

Comments
 (0)