diff --git a/src/builder/resources/speiger/assets/collections/templates/utils/AsyncBuilder.template b/src/builder/resources/speiger/assets/collections/templates/utils/AsyncBuilder.template index 3ad7d76d..e74a60e4 100644 --- a/src/builder/resources/speiger/assets/collections/templates/utils/AsyncBuilder.template +++ b/src/builder/resources/speiger/assets/collections/templates/utils/AsyncBuilder.template @@ -68,15 +68,15 @@ import speiger.src.collections.utils.SanityChecks; * The Task Object is also pause-able/Interruptable at any moment during the Processing.
* * A small example - *
- * public void processFiles(ObjectCollection potentialFiles) {
+ * 

+ * public void processFiles(ObjectCollection<String> potentialFiles) {
  * 	potentialFiles.asAsync()
  * 		.map(Paths::get).filter(Files::exists) //Modifies the collection (Optional)
  * 		.forEach(Files::delete) //Creates the action (Required)
- * 		.callback(T -> {}} //Callback on completion (Optional)
+ * 		.onCompletion(T -> {}} //Callback on completion (Optional)
  * 		.execute() //Starts the task. (Required)
  * }
- * 
+ *
* @author Speiger * * @Type(T) @@ -88,7 +88,7 @@ public class ASYNC_BUILDER KEY_GENERIC_TYPE /** * Main Constructor that uses a Iterable to build a Offthread Task. - * @param iterable + * @param iterable that should be processed */ public ASYNC_BUILDER(ITERABLE KEY_GENERIC_TYPE iterable) { this.iterable = iterable; @@ -96,7 +96,7 @@ public class ASYNC_BUILDER KEY_GENERIC_TYPE /** * Helper constructor. - * @param task + * @param task that had been build */ public ASYNC_BUILDER(BASE_TASK KEY_GENERIC_TYPE task) { this.task = task; @@ -310,7 +310,7 @@ public class ASYNC_BUILDER KEY_GENERIC_TYPE * @return self with the callback set * @note can be null */ - public ASYNC_BUILDER KEY_GENERIC_TYPE callback(Consumer callback) { + public ASYNC_BUILDER KEY_GENERIC_TYPE onCompletion(Consumer callback) { if(task == null) throw new IllegalStateException("Action is missing"); task.withCallback(callback); return this;