chore:Fix up typos for unfoldResource* operators. (#1190)

This commit is contained in:
He-Pin(kerr) 2024-03-15 02:17:44 +08:00 committed by GitHub
parent 1b63e60a30
commit 7eef4e017d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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](
@ -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](