mirror of
https://github.com/apple/swift-system
synced 2026-11-28 05:14:33 +00:00
Specify some omitted error types
This commit is contained in:
1 parent
e2ae946862
commit
2d0912acba
1 file changed
+2
-2
@@ -715,7 +715,7 @@ public struct IORing: ~Copyable {
|
||||
}
|
||||
|
||||
/// Removes registered files from the ring
|
||||
public func unregisterFiles() throws {
|
||||
public func unregisterFiles() throws(Errno) {
|
||||
_ = try _ioUringRegister(
|
||||
ringDescriptor: ringDescriptor,
|
||||
opcode: RegistrationOps.unregisterFiles.rawValue,
|
||||
@@ -781,7 +781,7 @@ public struct IORing: ~Copyable {
|
||||
RegisteredResources(resources: _registeredBuffers)
|
||||
}
|
||||
|
||||
public func unregisterBuffers() throws {
|
||||
public func unregisterBuffers() throws(Errno) {
|
||||
_ = try _ioUringRegister(
|
||||
ringDescriptor: self.ringDescriptor,
|
||||
opcode: RegistrationOps.unregisterBuffers.rawValue,
|
||||
|
||||
Reference in new issue
Block a user