Closed hiroshihorie closed 7 months ago
Prevents races that can occur between internally called getTrackPublication and publish. Perhaps this can be improved to allow concurrent execution if source types are different.
getTrackPublication
publish
source
Using AsyncChannel might be more solid: https://github.com/apple/swift-async-algorithms/blob/main/Sources/AsyncAlgorithms/AsyncAlgorithms.docc/Guides/Channel.md
AsyncChannel
Prevents races that can occur between internally called
getTrackPublication
andpublish
. Perhaps this can be improved to allow concurrent execution ifsource
types are different.