Skip to content

Commit

Permalink
chore:Fix up typos for unfoldResource* operators. (#1190)
Browse files Browse the repository at this point in the history
  • Loading branch information
He-Pin authored Mar 14, 2024
1 parent 1b63e60 commit 7eef4e0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ object Source {
*
* @param create - function that is called on stream start and creates/opens resource.
* @param read - function that reads data from opened resource. It is called each time backpressure signal
* is received. Stream calls close and completes when `read` returns None.
* is received. Stream calls close and completes when `read` returns an empty Optional.
* @param close - function that closes resource
*/
def unfoldResource[T, S](
Expand All @@ -871,7 +871,7 @@ object Source {
*
* @param create - function that is called on stream start and creates/opens resource.
* @param read - function that reads data from opened resource. It is called each time backpressure signal
* is received. Stream calls close and completes when `CompletionStage` from read function returns None.
* is received. Stream calls close and completes when `CompletionStage` from read function returns an empty Optional.
* @param close - function that closes resource
*/
def unfoldResourceAsync[T, S](
Expand Down

0 comments on commit 7eef4e0

Please sign in to comment.