FSEventsWrapper

2.1.0

Easily use FSEvents in Swift
Frizlab/FSEventsWrapper

What's New

FSEventsWrapper 2.1

2023-07-18T16:33:05Z

New in this release:

FSEventsWrapper

A wrapper around FSEvents raw C APIs.

Installation

Use SPM.

How to Use?

/* Using a standard callback. */
let w = FSEventStream(path: "awesome/path", callback: { stream, event in NSLog("%@", String(describing: event)) })
w?.startWatching()

/* Or with an AsyncStream. */
Task {
   for await event in FSEventAsyncStream(path: "awesome/path") {
      print(event)
   }
}

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

  • None
Last updated: Fri May 24 2024 23:02:27 GMT-0900 (Hawaii-Aleutian Daylight Time)