apple/swift-metrics

There are several copy of the SwiftNIO Locks

mengxiangyue opened this issue · 1 comments

Hello, I find in swift-log and swift-service-lifecycle also include the copy of SwiftNIO Locks, do you think split it to a standalone framework?

https://github.com/apple/swift-log/blob/main/Sources/Logging/Locks.swift
https://github.com/swift-server/swift-service-lifecycle/blob/main/Sources/Lifecycle/Locks.swift

ktoso commented

Hi there,
no, we are not going to make a standalone "locks" library. Copying around is painful, but is better than committing to a library we do not want to support long-term.

With Swift Concurrency just around the corner, we'll be rather embracing those things and Swift Atomics, rather than exposing those lock libs.

Hope that explains it :)