Skip to content

Commit 2cc272e

Browse files
committed
Make waitUntilExitSendingSigIntOnTaskCancellation a public function instead of a public extension
1 parent efba8ce commit 2cc272e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Sources/SKSupport/Process+WaitUntilExitWithCancellation.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ import Foundation
1515
import class TSCBasic.Process
1616
import struct TSCBasic.ProcessResult
1717

18-
public extension Process {
18+
extension Process {
1919
/// Wait for the process to exit. If the task gets cancelled, during this time, send a `SIGINT` to the process.
20-
func waitUntilExitSendingSigIntOnTaskCancellation() async throws -> ProcessResult {
20+
@discardableResult
21+
public func waitUntilExitSendingSigIntOnTaskCancellation() async throws -> ProcessResult {
2122
return try await withTaskCancellationHandler {
2223
try await waitUntilExit()
2324
} onCancel: {

0 commit comments

Comments
 (0)