Skip to content

Commit 9e5221a

Browse files
committed
Fix EffectTask deprecation
1 parent 39c62e6 commit 9e5221a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Sources/ComposableArchitecture/Effect.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,17 +102,17 @@ extension EffectPublisher {
102102
/// the Combine interface to ``EffectPublisher`` is considered soft deprecated, and you should
103103
/// eventually port to Swift's native concurrency tools.
104104
///
105-
/// > Important: The publisher interface to ``EffectTask`` is considered deperecated, and you should
106-
/// try converting any uses of that interface to Swift's native concurrency tools.
105+
/// > Important: The publisher interface to ``EffectTask`` is considered deprecated, and you should
106+
/// > try converting any uses of that interface to Swift's native concurrency tools.
107107
/// >
108108
/// > Also, ``Store`` is not thread safe, and so all effects must receive values on the same
109-
/// thread. This is typically the main thread, **and** if the store is being used to drive UI then
110-
/// it must receive values on the main thread.
109+
/// > thread. This is typically the main thread, **and** if the store is being used to drive UI
110+
/// > then it must receive values on the main thread.
111111
/// >
112112
/// > This is only an issue if using the Combine interface of ``EffectPublisher`` as mentioned
113-
/// above. If you are using Swift's concurrency tools and the `.task`, `.run` and `.fireAndForget`
114-
/// functions on ``EffectTask``, then threading is automatically handled for you.
115-
public typealias EffectTask<Action> = Effect<Action, Never>
113+
/// > above. If you are using Swift's concurrency tools and the `.task`, `.run`, and
114+
/// > `.fireAndForget` functions on ``EffectTask``, then threading is automatically handled for you.
115+
public typealias EffectTask<Action> = EffectPublisher<Action, Never>
116116

117117
extension EffectPublisher where Failure == Never {
118118
/// Wraps an asynchronous unit of work in an effect.

0 commit comments

Comments
 (0)