Details
-
Improvement
-
Resolution: Works as Designed
-
Unknown
-
None
-
None
Description
Right now, Observable head hard codes an ExecutionContext. It would be preferable if library consumers could pass in an ExecutionContext of their choosing:
def head()(implicit ec: ExecutionContext): Future[T] = { |
headOption().map {
|
case Some(result) => result |
case None => null.asInstanceOf[T] // scalastyle:ignore null |
}
|
}
|