process_plus 2.0.0

Dart native
Flutter Android iOS

Helpers classes and added functionality for `package:process`.

process_plus #

Pub build status

Helpers for package:process. Including ForwardingProcessManager, PooledProcessManager, MockProcessManager, and CompletedProcess.

ForwardingProcessManager #

A simple ProcessManager that delegates to another one. Typically used as a base class to extend functionality.

var manager = ForwwardingProcessManager(const LocalProcessManager());

PooledProcessManager #

A ProcessManager that uses a Pool to limit to the max amount of concurrently-running processes.

var manager = PooledProcessManager(const LocalProcessManager(), Platform.numberOfProcessors);

MockProcessManager #

A ProcessManager that can enqueue results in advance, rather than actually spawning OS processes.

var manager = MockProcessManager();
manager.enqueue(ProcessResult(0, 1337, stdout, stderr));

var p = await manager.run(['foo', '--bar=baz']);
await p.exitCode; // 1337

CompletedProcess #

A Process implementation that simply outputs the result of a CompletedProcess.

var p = CompletedProcess(ProcessResult(0, 1337, stdout, stderr));
await p.exitCode; // 1337
1
likes
100
pub points
0%
popularity

Helpers classes and added functionality for `package:process`.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

thosakwe@gmail.com

License

MIT (LICENSE)

Dependencies

pool, process

More

Packages that depend on process_plus