code: public <F> Task<F> map(Function<E, F> mapper) {
      return new Task<>(taskId, mapper.apply(payload));
    }
docs: Maps task from one payload type to another.
  
  @param <F>    future type
  @param mapper type mapper.
  @return mapped task.