Strict concurrency for NIONFS3 and NIONFS3Tests (#264)

This commit is contained in:
George Barnett authored and GitHub committed 2025-04-07 15:09:17 +01:00
1 parent 96bce550c6
commit b6b5e1133f
10 files changed
+39 -21

No files matched your search

+5 -1
View File
@@ -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>)