code: public void assign(WorkerSlot slot, Collection<ExecutorDetails> executors) {
          for (ExecutorDetails executor : executors) {
              this.executorToSlot.put(executor, slot);
          }
      }
docs: Assign the slot to executors.