Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-787

Allow a Task to be executed using an ExecutorService supplied at execution time

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.0.1
    • core-util
    • None
    • n/a

    Description

      org.apache.pivot.util.concurrent.Task can be passed a an ExecutorService at construction which will be used when the Task is executed asynchronously.
      http://pivot.apache.org/2.0/docs/api/org/apache/pivot/util/concurrent/Task.html#Task(java.util.concurrent.ExecutorService)

      It would be useful to be able to override this (or the default ExecutorService if the no-arg constructor was used) when executing a Task asynchronously, especially for Tasks that might be run multiple times and when the ExecutorService to use is not known when the Task is constructed.

      Attachments

        1. task_executor_service.patch
          1 kB
          Christopher James Bartlett

        Activity

          People

            cbartlett Christopher James Bartlett
            cbartlett Christopher James Bartlett
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: