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
Is this appropriate? I see that if you want to hook into Stdout of a child, you can access exercise.(submission|solution)Stdout, and that the exercise class has a method for getStdout.. Is there a better way to handle the IOs of child processes?
function query (mode) {
var exercise = this
function send (stream) {
var input = through2()
input
.pipe(stream)
.on('error', function(err) {
exercise.emit(
'fail',
'Submission never read from process.stdin'
)
})
input.write('secret message');
input.end();
}
send(exercise.submissionChild.stdin)
if (mode == 'verify')
send(exercise.solutionChild.stdin)
}
The text was updated successfully, but these errors were encountered:
Is this appropriate? I see that if you want to hook into Stdout of a child, you can access exercise.(submission|solution)Stdout, and that the exercise class has a method for
getStdout
.. Is there a better way to handle the IOs of child processes?The text was updated successfully, but these errors were encountered: