implicit class ScalaSingleObservable[T] extends AnyRef
Extends SingleObservable to provide simple conversion to a future.
- T
the type of result
- Since
2.0
- Alphabetic
- By Inheritance
- ScalaSingleObservable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ScalaSingleObservable(observable: SingleObservable[T])
- observable
the single result observable
Value Members
-
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
-
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
This is the documentation for the MongoDB Scala driver.
Driver structure
The mongodb scala driver.
To get started you need a MongoClient instance, either from a connection string or via a org.mongodb.scala.MongoClientSettings.
Notable packages include: