Skip to content

Commit a308bf2

Browse files
Update README.md
Co-authored-by: Faris Masad <[email protected]>
1 parent b5923e4 commit a308bf2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,7 @@ const ExampleService = ServiceSchema.define({
493493
responseData: Type.Object({ echo: Type.String() }),
494494
async handler({ ctx, reqReadable, resWritable }) {
495495
// for streams, cancellation closes both readable and writable
496+
// in addition to triggering the abort signal.
496497
for await (const msg of reqReadable) {
497498
if (!msg.ok) {
498499
// msg.payload.code === CANCEL_CODE error if client cancelled

0 commit comments

Comments
 (0)