Package cloud.commandframework.tasks
Class TaskRecipe
- java.lang.Object
-
- cloud.commandframework.tasks.TaskRecipe
-
public final class TaskRecipe extends java.lang.ObjectA task recipe is a chain of tasks with optional synchronization steps, that can be used to produce some sort of result from some input
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classTaskRecipe.TaskRecipeComponentOutputting<I,O>Represents a partial recipeclassTaskRecipe.TaskRecipeComponentVoid<I>Represents a partial recipe
-
Method Summary
Modifier and Type Method Description <I> @NonNull TaskRecipe.TaskRecipeComponentOutputting<I,I>begin(@NonNull I input)Begin the recipe.
-
-
-
Method Detail
-
begin
public <I> @NonNull TaskRecipe.TaskRecipeComponentOutputting<I,I> begin(@NonNull I input)
Begin the recipe. This step always runs asynchronously.- Type Parameters:
I- Input type- Parameters:
input- Input- Returns:
- Function that maps the input to itself
-
-