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

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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.1
    • Component/s: core-util
    • Labels:
      None
    • Environment:
      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.

        Activity

        Hide
        smartini Sandro Martini added a comment -

        Hi,
        for me this little improvement could go in 2.0.1, but for others ?
        If there aren't objections before a few days I think Chris can commit and mark as resolved.
        Bye

        Show
        smartini Sandro Martini added a comment - Hi, for me this little improvement could go in 2.0.1, but for others ? If there aren't objections before a few days I think Chris can commit and mark as resolved. Bye
        Hide
        cbartlett Chris Bartlett added a comment -

        Yes, that was my plan.

        Show
        cbartlett Chris Bartlett added a comment - Yes, that was my plan.

          People

          • Assignee:
            cbartlett Chris Bartlett
            Reporter:
            cbartlett Chris Bartlett
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development