<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Stream/Status/writing",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:@E@NSStreamStatus@NSStreamStatusWriting"
  },
  "title" : "Stream.Status.writing"
}
-->

# Stream.Status.writing

Data is being written to the stream. This status would be returned if code on another thread were to call [`streamStatus`](/documentation/Foundation/Stream/streamStatus) on the stream while a [`write(_:maxLength:)`](/documentation/Foundation/OutputStream/write(_:maxLength:)) call ([`OutputStream`](/documentation/Foundation/OutputStream)) was in progress.

```
case writing
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)