groovy
  1. groovy
  2. GROOVY-2039

Change sleep() variant with closure to enable continued sleep

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1-beta-3
    • Component/s: groovy-jdk
    • Labels:
      None
    • Number of attachments :
      0

      Description

      The following is possible with the new sleep variant:

        Activity

        Hide
        Joachim Baumann added a comment -

        [pressed return accidentally]

        sleep(2000)

        { log += it.toString() false // continue sleeping }
        Show
        Joachim Baumann added a comment - [pressed return accidentally] sleep(2000) { log += it.toString() false // continue sleeping }
        Hide
        Joachim Baumann added a comment -

        implemented

        Show
        Joachim Baumann added a comment - implemented
        Hide
        Joachim Baumann added a comment -

        Build was succesful

        Show
        Joachim Baumann added a comment - Build was succesful

          People

          • Assignee:
            Joachim Baumann
            Reporter:
            Joachim Baumann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: