Use scalafix to update scala 2.13.3, silencer 1.7.0 (#29367)
This commit is contained in:
parent
388fb73beb
commit
9416dedad7
58 changed files with 131 additions and 115 deletions
|
|
@ -58,7 +58,7 @@ object Source {
|
|||
* with an empty Optional.
|
||||
*/
|
||||
def maybe[T]: Source[T, CompletableFuture[Optional[T]]] = {
|
||||
new Source(scaladsl.Source.maybe[T].mapMaterializedValue { scalaOptionPromise: Promise[Option[T]] =>
|
||||
new Source(scaladsl.Source.maybe[T].mapMaterializedValue { (scalaOptionPromise: Promise[Option[T]]) =>
|
||||
val javaOptionPromise = new CompletableFuture[Optional[T]]()
|
||||
scalaOptionPromise.completeWith(
|
||||
javaOptionPromise.toScala.map(_.asScala)(akka.dispatch.ExecutionContexts.parasitic))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue