0 purchases
auto exit process
auto_exit_process #
Auto Exit Process #
The project's purpose is killing child processes when the parent process exited.
The function uses signal on all platforms, and uses job on the Windows platform additionally.
Related links:
windows job-objects.
Example #
import 'dart:io' as io;
import 'package:auto_exit_process/auto_exit_process.dart' as aep;
void main(List<String> args) async {
// set [isAutoExit] to [true]
final io.Process process =
await aep.Process.start('ping', ['www.google.com'], isAutoExit: true);
process.stdout.pipe(io.stdout);
process.stderr.pipe(io.stderr);
await process.exitCode;
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.