You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note you will need to change the path here to point to an existing file on your local disk. Once you run the app, you will see the following thread warning:
Expected behavior
Not to see thread warnings when running
NIOFileSystem
methods in a Task in a SwiftUI app.Actual behavior
I believe this is very similar to: #2686
That specific issue was fixed by: #2687
In
NIOFileSystem
, the usage ofDispatchSemaphore
seems to cause the same issues. I created a reproducible repo that you can check out here: https://github.com/fortmarek/NIOFileSystemThreadWarningReproductionNote you will need to change the path here to point to an existing file on your local disk. Once you run the app, you will see the following thread warning:
Steps to reproduce
If possible, minimal yet complete reproducer code (or URL to code)
SwiftNIO version/commit hash
2.76.1
System & version information
nio-diagnose.md
The text was updated successfully, but these errors were encountered: