@@ -272,7 +272,7 @@ internal class SignalProducerCore<Value, Error: Swift.Error> {
272272 /// closure.
273273 ///
274274 /// - returns: A producer that forwards events yielded by the action.
275- internal func flatMapEvent< U, E> ( _ transform: @escaping ( @escaping Signal < U , E > . Observer . Action ) -> ( Signal < Value , Error > . Event ) -> Void ) -> SignalProducer < U , E > {
275+ internal func flatMapEvent< U, E> ( _ transform: @escaping Signal < Value , Error > . Event . Transformation < U , E > ) -> SignalProducer < U , E > {
276276 return SignalProducer < U , E > ( TransformerCore ( source: self , transform: transform) )
277277 }
278278}
@@ -316,9 +316,9 @@ private final class SignalCore<Value, Error: Swift.Error>: SignalProducerCore<Va
316316/// - note: This core does not use `Signal` unless it is requested via `makeInstance()`.
317317private final class TransformerCore < Value, Error: Swift . Error , SourceValue, SourceError: Swift . Error > : SignalProducerCore < Value , Error > {
318318 private let source : SignalProducerCore < SourceValue , SourceError >
319- private let transform : ( @escaping Signal < Value , Error > . Observer . Action ) -> ( Signal < SourceValue , SourceError > . Event ) -> Void
319+ private let transform : Signal < SourceValue , SourceError > . Event . Transformation < Value , Error >
320320
321- init ( source: SignalProducerCore < SourceValue , SourceError > , transform: @escaping ( @escaping Signal < Value , Error > . Observer . Action ) -> ( Signal < SourceValue , SourceError > . Event ) -> Void ) {
321+ init ( source: SignalProducerCore < SourceValue , SourceError > , transform: @escaping Signal < SourceValue , SourceError > . Event . Transformation < Value , Error > ) {
322322 self . source = source
323323 self . transform = transform
324324 }
@@ -327,7 +327,7 @@ private final class TransformerCore<Value, Error: Swift.Error, SourceValue, Sour
327327 return source. start { Signal . Observer ( generator ( $0) , transform, $0) }
328328 }
329329
330- internal override func flatMapEvent< U, E> ( _ transform: @escaping ( @escaping Signal < U , E > . Observer . Action ) -> ( Signal < Value , Error > . Event ) -> Void ) -> SignalProducer < U , E > {
330+ internal override func flatMapEvent< U, E> ( _ transform: @escaping Signal < Value , Error > . Event . Transformation < U , E > ) -> SignalProducer < U , E > {
331331 return SignalProducer < U , E > ( TransformerCore < U , E , SourceValue , SourceError > ( source: source) { [ innerTransform = self . transform] action in
332332 return innerTransform ( transform ( action) )
333333 } )
0 commit comments