Packages

c

org.mongodb.scala.ObservableImplicits

ScalaSingleObservable

implicit class ScalaSingleObservable[T] extends AnyRef

Extends SingleObservable to provide simple conversion to a future.

T

the type of result

Since

2.0

Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ScalaSingleObservable
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ScalaSingleObservable(observable: SingleObservable[T])

    observable

    the single result observable

Value Members

  1. def toFuture(): Future[T]

    Collects the Observable result and converts to a scala.concurrent.Future.

    Collects the Observable result and converts to a scala.concurrent.Future.

    returns

    a future representation of the Observable

  2. def toFutureOption(): Future[Option[T]]

    Collects the Observable result and converts to a scala.concurrent.Future.

    Collects the Observable result and converts to a scala.concurrent.Future.

    returns

    a future representation of the Observable

    Since

    2.2