-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
improve names of side effect builders #505
Conversation
@@ -20,7 +20,7 @@ import kotlinx.coroutines.flow.onStart | |||
import kotlinx.coroutines.launch | |||
|
|||
@ExperimentalCoroutinesApi | |||
internal class StartStatemachineOnEnterSideEffectBuilder<SubStateMachineState : Any, SubStateMachineAction : Any, InputState : S, S : Any, A>( | |||
internal class OnEnterStateMachine<SubStateMachineState : Any, SubStateMachineAction : Any, InputState : S, S : Any, A>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just personal preference: OnEnterStartStateMachine
(so add the Start
). Your call, just a personal preference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense d2c9d88
@@ -19,7 +19,7 @@ import kotlinx.coroutines.launch | |||
import kotlinx.coroutines.sync.Mutex | |||
import kotlinx.coroutines.sync.withLock | |||
|
|||
internal class StartStateMachineOnActionInStateSideEffectBuilder<SubStateMachineState : Any, SubStateMachineAction : Any, InputState : S, ActionThatTriggeredStartingStateMachine : A, S : Any, A : Any>( | |||
internal class OnActionStateMachine<SubStateMachineState : Any, SubStateMachineAction : Any, InputState : S, ActionThatTriggeredStartingStateMachine : A, S : Any, A : Any>( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just personal preference: OnActionStartStateMachine
(so add the Start
). Your call, just a personal preference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simplifies and aligns the names to match the DSL methods that they are used for.