A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://scala-lang.org/api/3.x/scala/jdk/FutureConverters$.html below:

FutureConverters

FutureConverters

scala.jdk.FutureConverters

object FutureConverters

This object provides extension methods that convert between Scala scala.concurrent.Future and Java java.util.concurrent.CompletionStage

When writing Java code, use the explicit conversion methods defined in javaapi.FutureConverters instead.

Note that the bridge is implemented at the read-only side of asynchronous handles, namely scala.concurrent.Future (instead of scala.concurrent.Promise) and java.util.concurrent.CompletionStage (instead of java.util.concurrent.CompletableFuture). This is intentional, as the semantics of bridging the write-handles would be prone to race conditions; if both ends (CompletableFuture and Promise) are completed independently at the same time, they may contain different values afterwards. For this reason, toCompletableFuture is not supported on the created CompletionStages.

Attributes
Source
FutureConverters.scala
Graph
Supertypes

class

Object

trait

Matchable

class

Any
Self type
FutureConverters

.

type
Members list

Type members

Classlikes

final implicit class CompletionStageOps[T](cs: CompletionStage[T]) extends AnyVal Attributes
Source
FutureConverters.scala
Supertypes

class

AnyVal

trait

Matchable

class

Any
final implicit class FutureOps[T](f: Future[T]) extends AnyVal Attributes
Source
FutureConverters.scala
Supertypes

class

AnyVal

trait

Matchable

class

Any

Implicits

Implicits

implicit def CompletionStageOps

[

T

](

cs

:

CompletionStage

[

T

]):

CompletionStageOps

[

T

]

Attributes
Source
FutureConverters.scala
implicit def FutureOps

[

T

](

f

:

Future

[

T

]):

FutureOps

[

T

]

Attributes
Source
FutureConverters.scala

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4