---
title: nonBlocking
framework: system
role: symbol
role_heading: Type Property
path: system/filedescriptor/openoptions/nonblocking
---

# nonBlocking

Indicates that opening the file doesn’t wait for the file or device to become available.

## Declaration

```swift
static var nonBlocking: FileDescriptor.OpenOptions { get }
```

## Mentioned in

Adopting Swift File Options

## Discussion

Discussion If this option is specified, the system doesn’t wait for the device or file to be ready or available. If the doc:FileDescriptor/open(_:_:options:permissions:retryOnInterrupt:)-2266j call would result in the process being blocked for some reason, that method returns immediately. This flag also has the effect of making all subsequent input and output operations on the open file nonblocking. The corresponding C constant is O_NONBLOCK.

## See Also

### Specifying Options

- [append](system/filedescriptor/openoptions/append.md)
- [closeOnExec](system/filedescriptor/openoptions/closeonexec.md)
- [create](system/filedescriptor/openoptions/create.md)
- [eventOnly](system/filedescriptor/openoptions/eventonly.md)
- [exclusiveCreate](system/filedescriptor/openoptions/exclusivecreate.md)
- [exclusiveLock](system/filedescriptor/openoptions/exclusivelock.md)
- [noFollow](system/filedescriptor/openoptions/nofollow.md)
- [sharedLock](system/filedescriptor/openoptions/sharedlock.md)
- [symlink](system/filedescriptor/openoptions/symlink.md)
- [truncate](system/filedescriptor/openoptions/truncate.md)
