code: public static UserExecutorConfiguration of(ExecutorType type, int num) {
          ArgumentUtils.check("type", type).notNull();
          UserExecutorConfiguration configuration = of(type);
          configuration.type = type;
          switch (type) {
              case FIXED:
                  configuration.nThreads = num;
                  break;
              case SCHEDULED:
                  configuration.corePoolSize = num;
                  break;
              case WORK_STEALING:
                  configuration.parallelism = num;
                  break;
              default:
          }
          return configuration;
      }
docs: Construct a {@link UserExecutorConfiguration} for the given {@link io.micronaut.scheduling.executor.ExecutorType}.
  
  @param type The type
  @param num  The number of threads for {@link io.micronaut.scheduling.executor.ExecutorType#FIXED} or the parallelism for
  {@link io.micronaut.scheduling.executor.ExecutorType#WORK_STEALING} or the core pool size for {@link io.micronaut.scheduling.executor.ExecutorType#SCHEDULED}
  @return The configuration