Skip to content

Commit

Permalink
Apply changes from ktLintFormat
Browse files Browse the repository at this point in the history
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
rjrjr authored and github-actions[bot] committed Sep 25, 2024
1 parent 3f9f98a commit bf049f8
Showing 1 changed file with 46 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ public abstract class StatefulWorkflow<
name: String = "safeEventHandler",
crossinline onFailedCast: (name: String, type: KClass<*>, state: StateT) -> Unit =
::defaultOnFailedCast,
crossinline update:
// Type variance issue: https://github.com/square/workflow-kotlin/issues/891
crossinline update: // Type variance issue: https://github.com/square/workflow-kotlin/issues/891
WorkflowAction<@UnsafeVariance PropsT, StateT, @UnsafeVariance OutputT>.Updater.(
currentState: CurrentStateT
) -> Unit
Expand Down Expand Up @@ -218,7 +217,13 @@ public abstract class StatefulWorkflow<
}

public inline fun <
reified CurrentStateT : StateT & Any, E1, E2, E3, E4, E5, E6
reified CurrentStateT : StateT & Any,
E1,
E2,
E3,
E4,
E5,
E6
> safeEventHandler(
name: String = "safeEventHandler",
crossinline onFailedCast: (name: String, type: KClass<*>, state: StateT) -> Unit =
Expand All @@ -242,7 +247,14 @@ public abstract class StatefulWorkflow<
}

public inline fun <
reified CurrentStateT : StateT & Any, E1, E2, E3, E4, E5, E6, E7
reified CurrentStateT : StateT & Any,
E1,
E2,
E3,
E4,
E5,
E6,
E7
> safeEventHandler(
name: String = "safeEventHandler",
crossinline onFailedCast: (name: String, type: KClass<*>, state: StateT) -> Unit =
Expand All @@ -267,7 +279,15 @@ public abstract class StatefulWorkflow<
}

public inline fun <
reified CurrentStateT : StateT & Any, E1, E2, E3, E4, E5, E6, E7, E8
reified CurrentStateT : StateT & Any,
E1,
E2,
E3,
E4,
E5,
E6,
E7,
E8
> safeEventHandler(
name: String = "safeEventHandler",
crossinline onFailedCast: (name: String, type: KClass<*>, state: StateT) -> Unit =
Expand Down Expand Up @@ -295,7 +315,16 @@ public abstract class StatefulWorkflow<
}

public inline fun <
reified CurrentStateT : StateT & Any, E1, E2, E3, E4, E5, E6, E7, E8, E9
reified CurrentStateT : StateT & Any,
E1,
E2,
E3,
E4,
E5,
E6,
E7,
E8,
E9
> safeEventHandler(
name: String = "safeEventHandler",
crossinline onFailedCast: (name: String, type: KClass<*>, state: StateT) -> Unit =
Expand Down Expand Up @@ -324,7 +353,17 @@ public abstract class StatefulWorkflow<
}

public inline fun <
reified CurrentStateT : StateT & Any, E1, E2, E3, E4, E5, E6, E7, E8, E9, E10
reified CurrentStateT : StateT & Any,
E1,
E2,
E3,
E4,
E5,
E6,
E7,
E8,
E9,
E10
> safeEventHandler(
name: String = "safeEventHandler",
crossinline onFailedCast: (name: String, type: KClass<*>, state: StateT) -> Unit =
Expand Down

0 comments on commit bf049f8

Please sign in to comment.