FutureBinding

com.thoughtworks.binding.FutureBinding
See theFutureBinding companion object
final class FutureBinding[A](future: Future[A])(implicit executor: ExecutionContext) extends Binding[Option[Try[A]]]

A wrapper that wraps scala.concurrent.Future to a Binding.

Attributes

Note

Because all Binding (including this FutureBinding) are not thread safe, you must guarantee executor running sequentially.

Companion
object
Source
FutureBinding.scala
Graph
Supertypes
trait Binding[Option[Try[A]]]
trait Watchable[Option[Try[A]]]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def value: Option[Try[A]]

Returns the current value of this Binding

Returns the current value of this Binding

Attributes

Note

This method must not be invoked inside a @dom method body or a Binding { ... } block..

Definition Classes
Source
FutureBinding.scala

Deprecated methods

override def get: Option[Try[A]]

Attributes

Deprecated
[Since version 11.0.0] Use [[value]] instead
Definition Classes
Source
FutureBinding.scala

Inherited methods

final def flatMap[B](f: Option[Try[A]] => Binding[B]): Binding[B]

Attributes

Inherited from:
Binding
Source
Binding.scala
final def map[B](f: Option[Try[A]] => B): Binding[B]

Attributes

Inherited from:
Binding
Source
Binding.scala
final def unwatch(): Unit

Disable automatic recalculation.

Disable automatic recalculation.

Attributes

Note

This method is recursive, which means that the dependencies of this Binding will be unwatched as well.

Inherited from:
Binding
Source
Binding.scala
final def watch(): Unit

Enable automatic recalculation.

Enable automatic recalculation.

You may invoke this method more than once. Then, when you want to disable automatic recalculation, you must invoke unwatch same times as the number of calls to this method.

Attributes

Note

This method is recursive, which means that the dependencies of this Binding will be watched as well.

Inherited from:
Binding
Source
Binding.scala