create<G extends Grunt> static method

Future<Supervisor<Grunt>> create<G extends Grunt>(
  1. GruntFactory<G> entry, {
  2. bool debug = false,
  3. required bool isProduction,
})

Implementation

static Future<Supervisor> create<G extends Grunt>(GruntFactory<G> entry,
    {bool debug = false, required bool isProduction}) async {
  return debug == true
      ? Supervisor.debug(entry)
      : Supervisor(
          gruntType: G,
          grunt: await createGruntChannel(entry, isProduction: isProduction));
}