File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -241,6 +241,9 @@ extension OutputProtocol where Self == FileDescriptorOutput {
241
241
#endif
242
242
extension OutputProtocol where Self == StringOutput < UTF8 > {
243
243
/// Create a `Subprocess` output that collects output as UTF8 String
244
+ /// with an unlimited buffer size. The memory requirement for collecting
245
+ /// output is directly proportional to the size of the output
246
+ /// emitted by the child process.
244
247
public static var string : Self {
245
248
. init( limit: . max, encoding: UTF8 . self)
246
249
}
@@ -264,7 +267,10 @@ extension OutputProtocol {
264
267
@available ( SubprocessSpan, * )
265
268
#endif
266
269
extension OutputProtocol where Self == BytesOutput {
267
- /// Create a `Subprocess` output that collects output as `Buffer`
270
+ /// Create a `Subprocess` output that collects output as a `Buffer`
271
+ /// with an unlimited buffer size. The memory requirement for collecting
272
+ /// output is directly proportional to the size of the output
273
+ /// emitted by the child process.
268
274
public static var bytes : Self { . init( limit: . max) }
269
275
270
276
/// Create a `Subprocess` output that collects output as
You can’t perform that action at this time.
0 commit comments