mirror of
https://github.com/apple/swift-nio-extras
synced 2026-11-26 04:57:49 +00:00
Strict concurrency for NIONFS3 and NIONFS3Tests (#264)
This commit is contained in:
1 parent
96bce550c6
commit
b6b5e1133f
10 files changed
+39
-21
No files matched your search
@@ -14,7 +14,11 @@
|
||||
|
||||
import NIOCore
|
||||
|
||||
public protocol NFS3FileSystemNoAuth {
|
||||
@preconcurrency
|
||||
public protocol NFS3FileSystemNoAuth: Sendable {
|
||||
// Must be Sendable; there are extensions which take an event loop and call these functions
|
||||
// on that event loop.
|
||||
|
||||
func mount(_ call: MountCallMount, promise: EventLoopPromise<MountReplyMount>)
|
||||
func unmount(_ call: MountCallUnmount, promise: EventLoopPromise<MountReplyUnmount>)
|
||||
func getattr(_ call: NFS3CallGetAttr, promise: EventLoopPromise<NFS3ReplyGetAttr>)
|
||||
|
||||
Reference in new issue
Block a user