internal static void FeedOutputBuilder(SandboxedProcessOutputBuilder output, string line) { if (line != null) { output.AppendLine(line); } }
private static void FeedOutputBuilder(SandboxedProcessOutputBuilder output, TaskSourceSlim <Unit> signalCompletion, string line) { output.AppendLine(line); if (line == null) { signalCompletion.TrySetResult(Unit.Void); } }
internal static void FeedOutputBuilder(SandboxedProcessOutputBuilder output, TaskSourceSlim <Unit> signalCompletion, string line) { if (signalCompletion.Task.IsCompleted) { return; } output.AppendLine(line); if (line == null) { signalCompletion.TrySetResult(Unit.Void); } }