All of the code in NIOTS should be guarded by if #canImport(Network). However NIOFilterEmptyWritesHandler isn't. Since its intended use is to work around a bug in Network framework, it's only helpful when Network framework is available anyway.
We can't add the check now as it would break API, but we should consider adding the missing compilation check for the next major version of NIOTS.
All of the code in NIOTS should be guarded by
if #canImport(Network)
. HoweverNIOFilterEmptyWritesHandler
isn't. Since its intended use is to work around a bug in Network framework, it's only helpful when Network framework is available anyway.We can't add the check now as it would break API, but we should consider adding the missing compilation check for the next major version of NIOTS.