Skip to content

Commit 543b1f1

Browse files
committed
TSCBasic: deprecate ProcessSet
Redirect users to use `TaskGroup` instead of the `ProcessSet` API.
1 parent 91d1a0b commit 543b1f1

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

Sources/TSCBasic/Process/ProcessSet.swift

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public enum ProcessSetError: Swift.Error {
1919
/// A process set is a small wrapper for collection of processes.
2020
///
2121
/// This class is thread safe.
22+
@available(*, deprecated), message: "Use `TaskGroup` with async `Process` APIs instead")
2223
public final class ProcessSet {
2324

2425
/// Array to hold the processes.

Tests/TSCBasicTests/ProcessSetTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import TSCLibc
1414
import TSCUtility
1515
import TSCTestSupport
1616

17+
@available(*, deprecated)
1718
class ProcessSetTests: XCTestCase {
1819
#if !os(Windows) // Signals are not supported in Windows
1920
func script(_ name: String) -> String {

Tests/TSCBasicTests/ProcessTests.swift

+1
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ class ProcessTests: XCTestCase {
183183
}
184184

185185
#if !os(Windows) // Signals are not supported in Windows
186+
@available(*, deprecated)
186187
func testSignals() throws {
187188
let processes = ProcessSet()
188189
let group = DispatchGroup()

0 commit comments

Comments
 (0)