Executable class

Indicates an arbitrary executable file as a target for a ShardingManager.

This executable could be a compiled Dart project, but could also be a different language's executable.

For example, starting a bot written in JavaScript with nodejs: ```dart Executable('node', args: 'index.js');

Inheritance

Constructors

Executable(String executable, {List<String> args = const [], String? cwd})

Properties

args List<String>
The command-line arguments passed to each process.
final
cwd String?
The working directory to spawn each process in.
final
executable String
The executable ran for each process.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
spawn(List<int> processShards, int totalShards, int port) Future<Process>
Spawns a single Process according to the information in this ProcessManager.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited