Skip to content

Commit 921d78d

Browse files
committed
fix document
1 parent 7471a00 commit 921d78d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Sources/SimplexArchitecture/Internal/ActionTransition.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ struct ActionTransition<Reducer: ReducerProtocol> {
1414
let next: Self.State
1515
/// The associated side effect.
1616
let effect: SideEffect<Reducer>
17-
/// The unique effect context that represents parent effect.
17+
/// The unique effect context that represents root effect.
1818
let effectContext: UUID
1919
/// The Action that cause a change of state
2020
let action: CombineAction<Reducer>
@@ -23,7 +23,7 @@ struct ActionTransition<Reducer: ReducerProtocol> {
2323
/// - previous: The previous state.
2424
/// - next: The next state.
2525
/// - effect: The unique effect context that represents parent effect.
26-
/// - effectContext: The unique effect context that represents parent effect.
26+
/// - effectContext: The unique effect context that represents root effect.
2727
/// - action: The action responsible for the transition.
2828
init(
2929
previous: Self.State,

Sources/SimplexArchitecture/Send.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,14 @@ public struct Send<Reducer: ReducerProtocol>: Sendable {
1313
self.sendReducerAction = sendReducerAction
1414
}
1515

16+
@MainActor
1617
@discardableResult
1718
@inlinable
1819
func callAsFunction(_ action: Reducer.Action) -> SendTask {
1920
sendAction(action)
2021
}
2122

23+
@MainActor
2224
@_disfavoredOverload
2325
@discardableResult
2426
@inlinable

0 commit comments

Comments
 (0)