process_runner 4.0.0-nullsafety process_runner: ^4.0.0-nullsafety copied to clipboard
A process invocation astraction for Dart that manages a multiprocess queue.
Change Log for process_runner
#
4.0.0-nullsafety #
- Convert to non-nullable by default, enable null-safety experiment for Dart.
3.0.0 #
- Breaking change to change the
result
given in theProcessRunnerException
to be aProcessRunnerResult
instead of aProcessResult
, which can't include the interleaved stdout/stderr output for failed commands. - Modified the
ProcessPool
to set the result correctly on failed jobs.
2.0.5 #
- Added
WorkerJob.failOk
so that failure message of failed worker jobs is suppressed by default, but can be turned on.
2.0.4 #
- Added
printOutputDefault
to theProcessRunner
constructor, and updated docs.
2.0.1 #
- Modified the package structure to get credit for having an example
- Moved sub-libraries into lib/src directory to hide them from dartdoc.
- Updated example documentation.
2.0.0 #
-
Breaking change to modify the stderr, stdout, and output members of
ProcessRunnerResult
so that they return pre-decodedString
s instead ofList<int>
s. AddedstderrRaw
,stdoutRaw
, andoutputRaw
members that return the originalList<int>
values. Decoded strings are decoded by a newdecoder
optional argument which usesSystemEncoder
by default. -
Breaking change to modify the
stdin
member ofWorkerJob
so that it is aStream<String>
instead ofStream<List<int>>
, and a newstdinRaw
method that is aStream<List<int>>
. Added anencoder
attribute toProcessRunner
that provides the encoding for thestdin
stream, as well as the default decoding for results. -
Added
ProcessPool.runToCompletion
convenience function to provide a simple interface that just delivers the final results, without dealing with streams. -
Added more tests.
1.0.0 #
- Initial version