Closed mcritz closed 3 months ago
@petershaw Any interest in taking this change?
Thanks for adding this and sorry for the late reply, somehow we missed it... We will have a look and get back to you, soon!
Hey @mcritz I am totally fine with a change to the swift 5.9 dependency!
I'll manage to take a look to the implementation at the beginning of next week. Pretty cool at the first look! Thank you very much for contribution.
On Linux the FileMonitorTests.testLifecycleChange
hangs.
@mcritz can you take a look into it?
@mcritz I split test into two and fixed the problem. Let's wait for the CI confirmation. ;)
@KrisSimon Thanks for fixing that. Happy to have made a contribution!
@mcritz thank you very much for your contribution.
This PR:
AsyncStream
support toFileMonitor
for modern Swift Structured Concurrency supportBenefits: Users can change callback based system with
for await event in fileMonitor.stream { ... }
Drawbacks: I have forced the Package to use Swift 5.9 instead of using
#available
or@available
. We could use an availability check to avoid breaking backward compatibility. OR we could release a new, breaking release of this Package using Github releases.I’m open to either approach, but we should pick one.