Skip to content

Commit f92911c

Browse files
committed
Clarify docstring of write-body-to-stream
Closes #491.
1 parent 8e84ca5 commit f92911c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ring-core-protocols/src/ring/core/protocols.clj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
(write-body-to-stream [body response output-stream]
1010
"Write a value representing a response body to an output stream. The stream
1111
will be closed after the value had been written. The stream may be written
12-
asynchronously."))
12+
asynchronously from asynchronous handlers. In synchronous handlers, the
13+
response is considered completed once this method ends."))
1314

1415
;; The following private functions are replicated from ring.util.response in
1516
;; order to allow third-party adapters to use StreamableResponseBody without the

0 commit comments

Comments
 (0)