Scala Programming Language
  1. Scala Programming Language
  2. SI-6185

ExecutionContext needs to provide a hook for preparing the execution of a task

    Details

      Description

      ExecutionContext needs to provide a hook similar to this:

      def prepare[T, U](f: Try[T] => U): ExecutionContext
      

      The idea is that prepare is invoked on the thread that is submitting a task for execution. The returned ExecutionContext is then used to do the actual execution. Such a hook should enable implementing Twitter's Local abstraction, for example.

        Activity

        Show
        Adriaan Moors added a comment - https://github.com/scala/scala/pull/1056

          People

          • Assignee:
            Philipp Haller
            Reporter:
            Philipp Haller
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development