addService method

bool addService(
  1. Service newService
)

Adds newService to the pool and calls its start_service function.

Returns true on success.

Implementation

bool addService(Service newService) {
  newService.startService();
  _services.add(newService);
  return true;
}