@@ -2,7 +2,7 @@ import Combine
22
33extension EffectPublisher where Failure == Never {
44 /// Creates an effect from a Combine publisher.
5- ///
5+ ///
66 /// - Parameter createPublisher: The closure to execute when the effect is performed.
77 /// - Returns: An effect wrapping a Combine publisher.
88 public static func publisher< P: Publisher > ( _ createPublisher: @escaping ( ) -> P ) -> Self
@@ -92,19 +92,23 @@ extension EffectPublisher {
9292 /// - Parameter publisher: A publisher.
9393 @available (
9494 iOS, deprecated: 9999.0 ,
95- message: " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
95+ message:
96+ " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
9697 )
9798 @available (
9899 macOS, deprecated: 9999.0 ,
99- message: " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
100+ message:
101+ " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
100102 )
101103 @available (
102104 tvOS, deprecated: 9999.0 ,
103- message: " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
105+ message:
106+ " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
104107 )
105108 @available (
106109 watchOS, deprecated: 9999.0 ,
107- message: " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
110+ message:
111+ " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
108112 )
109113 public init < P: Publisher > ( _ publisher: P ) where P. Output == Output , P. Failure == Failure {
110114 self . operation = . publisher( publisher. eraseToAnyPublisher ( ) )
@@ -380,19 +384,23 @@ extension Publisher {
380384 /// - Returns: An effect that wraps `self`.
381385 @available (
382386 iOS, deprecated: 9999.0 ,
383- message: " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
387+ message:
388+ " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
384389 )
385390 @available (
386391 macOS, deprecated: 9999.0 ,
387- message: " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
392+ message:
393+ " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
388394 )
389395 @available (
390396 tvOS, deprecated: 9999.0 ,
391- message: " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
397+ message:
398+ " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
392399 )
393400 @available (
394401 watchOS, deprecated: 9999.0 ,
395- message: " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
402+ message:
403+ " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
396404 )
397405 public func eraseToEffect( ) -> EffectPublisher < Output , Failure > {
398406 EffectPublisher ( self )
@@ -415,19 +423,23 @@ extension Publisher {
415423 /// - Returns: An effect that wraps `self` after mapping `Output` values.
416424 @available (
417425 iOS, deprecated: 9999.0 ,
418- message: " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
426+ message:
427+ " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
419428 )
420429 @available (
421430 macOS, deprecated: 9999.0 ,
422- message: " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
431+ message:
432+ " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
423433 )
424434 @available (
425435 tvOS, deprecated: 9999.0 ,
426- message: " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
436+ message:
437+ " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
427438 )
428439 @available (
429440 watchOS, deprecated: 9999.0 ,
430- message: " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
441+ message:
442+ " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
431443 )
432444 public func eraseToEffect< T> (
433445 _ transform: @escaping ( Output ) -> T
@@ -460,19 +472,23 @@ extension Publisher {
460472 /// - Returns: An effect that wraps `self`.
461473 @available (
462474 iOS, deprecated: 9999.0 ,
463- message: " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
475+ message:
476+ " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
464477 )
465478 @available (
466479 macOS, deprecated: 9999.0 ,
467- message: " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
480+ message:
481+ " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
468482 )
469483 @available (
470484 tvOS, deprecated: 9999.0 ,
471- message: " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
485+ message:
486+ " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
472487 )
473488 @available (
474489 watchOS, deprecated: 9999.0 ,
475- message: " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
490+ message:
491+ " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
476492 )
477493 public func catchToEffect( ) -> EffectTask < Result < Output , Failure > > {
478494 self . catchToEffect { $0 }
@@ -495,19 +511,23 @@ extension Publisher {
495511 /// - Returns: An effect that wraps `self`.
496512 @available (
497513 iOS, deprecated: 9999.0 ,
498- message: " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
514+ message:
515+ " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
499516 )
500517 @available (
501518 macOS, deprecated: 9999.0 ,
502- message: " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
519+ message:
520+ " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
503521 )
504522 @available (
505523 tvOS, deprecated: 9999.0 ,
506- message: " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
524+ message:
525+ " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
507526 )
508527 @available (
509528 watchOS, deprecated: 9999.0 ,
510- message: " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
529+ message:
530+ " Iterate over 'Publisher.values' in an 'EffectTask.run', instead, or use 'EffectTask.publisher'. "
511531 )
512532 public func catchToEffect< T> (
513533 _ transform: @escaping ( Result < Output , Failure > ) -> T
0 commit comments