GruntChannel.create constructor

GruntChannel.create(
  1. GruntFactory<Grunt> factory
)

Implementation

factory GruntChannel.create(GruntFactory factory) {
  return GruntChannel(
    boss: connectToSupervisor(factory),
    grunt: factory.create(),
  );
}