We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a970dd commit e3dd7f2Copy full SHA for e3dd7f2
Sources/Venice/FileDescriptor.swift
@@ -141,7 +141,9 @@ public final class FileDescriptor {
141
/// After `detach` any operation will throw an error.
142
///
143
/// - Returns: The underlying file descriptor.
144
- public func detach() -> Int32 {
+ @discardableResult public func detach() -> Int32 {
145
+ clean()
146
+
147
defer {
148
fileDescriptor = -1
149
}
0 commit comments