diff --git a/Sources/Inotify/Inotify.swift b/Sources/Inotify/Inotify.swift index 4c492c8..582ad05 100644 --- a/Sources/Inotify/Inotify.swift +++ b/Sources/Inotify/Inotify.swift @@ -6,8 +6,8 @@ public actor Inotify { private var excludedItemNames: Set = [] private var watches = InotifyWatchManager() private var eventReader: any DispatchSourceRead - private var eventStream: AsyncStream - public var events: AsyncCompactMapSequence, InotifyEvent> { + private nonisolated let eventStream: AsyncStream + public nonisolated var events: AsyncCompactMapSequence, InotifyEvent> { self.eventStream.compactMap(self.transform(_:)) }