parent
a217d5566e
commit
1a8a438144
6 changed files with 93 additions and 22 deletions
|
|
@ -51,8 +51,8 @@ object Source {
|
|||
* followed by completion.
|
||||
* If the materialized promise is completed with an empty Optional, no value will be produced downstream and completion will
|
||||
* be signalled immediately.
|
||||
* If the materialized promise is completed with a failure, then the returned source will terminate with that error.
|
||||
* If the downstream of this source cancels before the promise has been completed, then the promise will be completed
|
||||
* If the materialized promise is completed with a failure, then the source will fail with that error.
|
||||
* If the downstream of this source cancels or fails before the promise has been completed, then the promise will be completed
|
||||
* with an empty Optional.
|
||||
*/
|
||||
def maybe[T]: Source[T, CompletableFuture[Optional[T]]] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue