subscript(_:)
Get or set a value in this dictionary as a file descriptor.
Declaration
subscript(key: String) -> FileDescriptor? { get set }Parameters
- key:
The key under which to get or set the file descriptor.
Return Value
A file descriptor value or nil if no such value was found.
Overview
A file descriptor passed in will be duplicated so the caller must still close theirs. A returned file descriptor is owned by the caller so it must be closed.