---
title: DispatchSourceWrite
framework: dispatch
role: symbol
role_heading: Protocol
path: dispatch/dispatchsourcewrite
---

# DispatchSourceWrite

A dispatch source object for writing data to a file descriptor.

## Declaration

```swift
protocol DispatchSourceWrite : DispatchSourceProtocol, Sendable
```

## Overview

Overview You do not adopt this protocol in your objects. Instead, use the makeWriteSource(fileDescriptor:queue:) method to create an object that adopts this protocol.

## Relationships

### Inherits From

- [DispatchSourceProtocol](dispatch/dispatchsourceprotocol.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

### Conforming Types

- [DispatchSource](dispatch/dispatchsource.md)

## See Also

### Creating a File System Source

- [makeReadSource(fileDescriptor:queue:)](dispatch/dispatchsource/makereadsource(filedescriptor:queue:).md)
- [makeWriteSource(fileDescriptor:queue:)](dispatch/dispatchsource/makewritesource(filedescriptor:queue:).md)
- [makeFileSystemObjectSource(fileDescriptor:eventMask:queue:)](dispatch/dispatchsource/makefilesystemobjectsource(filedescriptor:eventmask:queue:).md)
- [DispatchSourceRead](dispatch/dispatchsourceread.md)
- [DispatchSourceFileSystemObject](dispatch/dispatchsourcefilesystemobject.md)
- [DispatchSource.FileSystemEvent](dispatch/dispatchsource/filesystemevent.md)
