19441: Use Optional instead of Option in http core javadsl
This commit is contained in:
parent
7a39063f2e
commit
57c1dfde8a
54 changed files with 302 additions and 248 deletions
|
|
@ -103,7 +103,7 @@ object Sink {
|
|||
|
||||
/**
|
||||
* A `Sink` that materializes into a `Future` of the optional first value received.
|
||||
* If the stream completes before signaling at least a single element, the value of the Future will be an empty [[akka.japi.Option]].
|
||||
* If the stream completes before signaling at least a single element, the value of the Future will be an empty [[java.util.Optional]].
|
||||
* If the stream signals an error errors before signaling at least a single element, the Future will be failed with the streams exception.
|
||||
*
|
||||
* See also [[head]].
|
||||
|
|
@ -124,7 +124,7 @@ object Sink {
|
|||
|
||||
/**
|
||||
* A `Sink` that materializes into a `Future` of the optional last value received.
|
||||
* If the stream completes before signaling at least a single element, the value of the Future will be an empty [[akka.japi.Option]].
|
||||
* If the stream completes before signaling at least a single element, the value of the Future will be an empty [[java.util.Optional]].
|
||||
* If the stream signals an error errors before signaling at least a single element, the Future will be failed with the streams exception.
|
||||
*
|
||||
* See also [[head]].
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue