Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-260

Thread.start { } to execute a closure in a new thread

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0-beta-5
    • None
    • None

    Description

      hi,

      I talked to james and he liked the idea of adding a simple Thread.start(Closure c) so that you can easily run things in new threads.

      example:

      thread = Thread.start {
      process = "some long running process".execute();
      process.waitFor();
      }

      .. do something else while this runs.

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            maniax Thomas Heller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: