StructuredTaskScope::join not clear if called with interrupted status set

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P3
    • tbd
    • Affects Version/s: None
    • Component/s: core-libs

      The specification for StructuredTaskScope::join states that an InterruptedException is thrown if the thread is interrupted while waiting. However, it seems that this is not the only case, because the thread could also be interrupted before calling join, and the method would still throw InterruptedException.
      Shouldn't the documentation say something like "Throws InterruptedException if the calling thread is interrupted before or while waiting"?

      also many APIs that throw InterruptedException don't explicit state what happens if they are called with the interrupted status set.

            Assignee:
            Alan Bateman
            Reporter:
            Hamza Nassour
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: