public TaskBuilder setCanCancel(boolean canCancel) {
		this.canCancel = canCancel;
		return this;
	}
Sets whether the task can be cancelled.  The default is <code>true</code>.

@param canCancel true if the task can be cancelled.
@return this builder
Ghidra/Framework/Docking/src/main/java/ghidra/util/task/TaskBuilder.java