You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Proc.Fs/README.md
+21Lines changed: 21 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,3 +103,24 @@ let helpOutput = exec {
103
103
```
104
104
105
105
returns the exit code and the full console output.
106
+
107
+
```fsharp
108
+
109
+
let process = exec {
110
+
binary "dotnet"
111
+
arguments "--help"
112
+
wait_until (fun l -> l.Line.Contains "clean")
113
+
}
114
+
```
115
+
116
+
returns an already running process but only after it confirms a line was printed
117
+
```fsharp
118
+
119
+
let process = exec {
120
+
binary "dotnet"
121
+
arguments "--help"
122
+
wait_until_and_disconnect (fun l -> l.Line.Contains "clean")
123
+
}
124
+
```
125
+
126
+
returns an already running process but only after it confirms a line was printed. This version will stop the yielding standard/out lines which may utilize memory consumption which is no longer needed.
0 commit comments