@@ -155,7 +155,7 @@ extension SSHClient {
155
155
/// - inShell: Whether to request the remote server to start a shell before executing the command.
156
156
public func executeCommandStream( _ command: String , inShell: Bool = false ) async throws -> AsyncThrowingStream < ExecCommandOutput , Error > {
157
157
var streamContinuation : AsyncThrowingStream < ExecCommandOutput , Error > . Continuation !
158
- let stream = AsyncThrowingStream < ExecCommandOutput , Error > { continuation in
158
+ let stream = AsyncThrowingStream < ExecCommandOutput , Error > ( bufferingPolicy : . unbounded ) { continuation in
159
159
streamContinuation = continuation
160
160
}
161
161
@@ -218,11 +218,11 @@ extension SSHClient {
218
218
public func executeCommandPair( _ command: String , inShell: Bool = false ) async throws -> ExecCommandStream {
219
219
var stdoutContinuation : AsyncThrowingStream < ByteBuffer , Error > . Continuation !
220
220
var stderrContinuation : AsyncThrowingStream < ByteBuffer , Error > . Continuation !
221
- let stdout = AsyncThrowingStream < ByteBuffer , Error > { continuation in
221
+ let stdout = AsyncThrowingStream < ByteBuffer , Error > ( bufferingPolicy : . unbounded ) { continuation in
222
222
stdoutContinuation = continuation
223
223
}
224
224
225
- let stderr = AsyncThrowingStream < ByteBuffer , Error > { continuation in
225
+ let stderr = AsyncThrowingStream < ByteBuffer , Error > ( bufferingPolicy : . unbounded ) { continuation in
226
226
stderrContinuation = continuation
227
227
}
228
228
0 commit comments