Uploaded image for project: 'Scala'
  1. Scala
  2. SCALA-430

Make DB based future implicit operations run on the local thread

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.4.1
    • Component/s: API, Performance
    • Labels:
      None

      Description

      Currently, the ObservableImplicits.headOption method doesn't set a context for running, so in the head method we use Scala's global execution context. If we use the current thread then it will use the same context/thread as the observable.

      See: https://github.com/mongodb/mongo-scala-driver/pull/45

       

       

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: