b) if you search apple docs how to handle file system changes - it directs you to kevents not to GCD (legacy stuff)
Quite. That’s just because kevents were introduced before Dispatch.
I’d appreciate you filing bugs against docs like this. There are some good reasons to use kevents, like compatibility with other platforms, but the bulk of our developers should use dispatch sources for this sort of thing. Using kevents correctly is really hard.
c) documentation on
DispatchSource
does not explain event semantics too well, while
man kevent
does. wanted to know they are semantically equal.
Again, if you find the Dispatch documentation inadequate that’s totally bugworthy.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
let myEmail = "eskimo" + "1" + "@apple.com"