File tree 2 files changed +3
-10
lines changed
Sources/ComposableArchitecture/Effects
2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,7 @@ struct RecordMeeting {
92
92
93
93
let secondsPerAttendee = Int ( state. syncUp. durationPerAttendee. components. seconds)
94
94
if state. secondsElapsed. isMultiple ( of: secondsPerAttendee) {
95
- if state. speakerIndex == state. syncUp. attendees . count - 1 {
95
+ if state. secondsElapsed == state. syncUp. duration . components . seconds {
96
96
state. syncUp. insert ( transcript: state. transcript)
97
97
return . run { _ in await self . dismiss ( ) }
98
98
}
Original file line number Diff line number Diff line change @@ -5,18 +5,11 @@ extension Effect {
5
5
///
6
6
/// - Parameter createPublisher: The closure to execute when the effect is performed.
7
7
/// - Returns: An effect wrapping a Combine publisher.
8
- public static func publisher< P: Publisher > ( _ createPublisher: @escaping ( ) -> P ) -> Self
8
+ public static func publisher< P: Publisher > ( _ createPublisher: ( ) -> P ) -> Self
9
9
where P. Output == Action , P. Failure == Never {
10
10
Self (
11
11
operation: . publisher(
12
- withEscapedDependencies { continuation in
13
- Deferred {
14
- continuation. yield {
15
- createPublisher ( )
16
- }
17
- }
18
- }
19
- . eraseToAnyPublisher ( )
12
+ createPublisher ( ) . eraseToAnyPublisher ( )
20
13
)
21
14
)
22
15
}
You can’t perform that action at this time.
0 commit comments