Skip to content

Commit

Permalink
Remove unnecessary @volatile from Listeners transition var.
Browse files Browse the repository at this point in the history
  • Loading branch information
Laimiux committed Feb 27, 2024
1 parent 97a0dda commit 55b816f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ internal class ListenerImpl<Input, State, EventT>(internal var key: Any) : Liste

@Volatile internal var manager: FormulaManagerImpl<Input, State, *>? = null
@Volatile internal var snapshotImpl: SnapshotImpl<Input, State>? = null
@Volatile internal lateinit var transition: Transition<Input, State, EventT>

internal lateinit var transition: Transition<Input, State, EventT>

override fun invoke(event: EventT) {
// TODO: log if null listener (it might be due to formula removal or due to callback removal)
Expand Down

0 comments on commit 55b816f

Please sign in to comment.