auto_exit_process

Creator: coderz1093

Last updated:

0 purchases

auto_exit_process Image
auto_exit_process Images

Languages

Categories

Add to Cart

Description:

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

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.