Skip to content

Commit

Permalink
Edit Effect.swift annotations (#3299)
Browse files Browse the repository at this point in the history
  • Loading branch information
MaraMincho authored Aug 23, 2024
1 parent 7d6feb3 commit 07e5b33
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Sources/ComposableArchitecture/Effect.swift
Original file line number Diff line number Diff line change
Expand Up @@ -160,19 +160,19 @@ extension Effect {
///
/// ```swift
/// return .run { send in
/// send(.started)
/// defer { send(.finished) }
/// await send(.started)
/// for await event in self.events {
/// send(.event(event))
/// }
/// await send(.finished)
/// }
/// ```
///
/// You can also send actions with animation:
/// You can also send actions with animation and transaction:
///
/// ```swift
/// send(.started, animation: .spring())
/// defer { send(.finished, animation: .default) }
/// await send(.started, animation: .spring())
/// await send(.finished, transaction: .init(animation: .default))
/// ```
///
/// See ``Effect/run(priority:operation:catch:fileID:filePath:line:column:)`` for more information on how to
Expand Down

0 comments on commit 07e5b33

Please sign in to comment.