Commit Graph

71 Commits

Author SHA1 Message Date
Brandon Williams
65b9f7bf07 Catch to effect updates (#707)
* Update catchToEffect docs.

* clean up
2021-08-11 11:30:55 -04:00
mbrandonw
e4a480ce9d Run swift-format 2021-08-11 15:09:43 +00:00
Eimantas
803f1b4b88 Add catchToEffect() with mapping function (#705)
Also add a couple of tests to testEraseToEffectWithError
2021-08-11 11:00:00 -04:00
Adam Roben
5c925e39cb Fix build error when minimum target is macOS 11.0 (#686)
macOS 11.0 introduced an overload of Publisher.flatMap(maxPublishers:_:)
for when the failure type is Never, documented here:
https://developer.apple.com/documentation/combine/publisher/flatmap(maxpublishers:_:)-qxf

This causes a compiler error in Effect.fireAndForget when the minimum
deployment target is 11.0 or later:

    Sources/ComposableArchitecture/Effect.swift:364:7: error: ambiguous use of 'flatMap(maxPublishers:_:)'
          self
          ^
    Combine.Publisher:3:17: note: found this candidate
        public func flatMap<T, P>(maxPublishers: Subscribers.Demand = .unlimited, _ transform: @escaping (Self.Output) -> P) -> Publishers.FlatMap<P, Self> where T == P.Output, P : Publisher, Self.Failure == P.Failure
                    ^
    Combine.Publisher:3:17: note: found this candidate
        public func flatMap<P>(maxPublishers: Subscribers.Demand = .unlimited, _ transform: @escaping (Self.Output) -> P) -> Publishers.FlatMap<Publishers.SetFailureType<P, Self.Failure>, Self> where P : Publisher, P.Failure == Never
                    ^

We can fix this by adding explicit type parameters to the Empty
publisher used in the flatMap().
2021-07-29 17:42:00 -04:00
Stephen Celis
d30336ca13 Clean-up pass for DocC (#599) 2021-06-16 08:48:14 -05:00
mbrandonw
e043226f3d Run swift-format 2021-06-14 18:15:34 +00:00
Wendy Liga
1a8bccc62e Support DocC Xcode 13 (#591)
* wip

* finish

* revert back code snippet identation to 5

* Update Sources/ComposableArchitecture/Effect.swift

Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com>

Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com>
2021-06-14 14:10:08 -04:00
Brandon Williams
4ea3dfed61 Work around Combine-related crash on iOS 13 (#483)
* Fix Combine crash for iOS 13.

* Clean up

* remove scheme
2021-04-08 08:18:36 -07:00
Stephen Celis
e45b7ecc03 Remove old Effect.fireAndForget() (#430)
* Update Effect.swift

* Update Effect.swift

* Update Effect.swift
2021-03-15 11:08:28 -04:00
stephencelis
5a4a9d5005 Run swift-format 2021-03-15 14:35:31 +00:00
Stephen Celis
2e6d34e26d Add more permissive fire-and-forget effect (#427)
* Add more permissive fire-and-forget effect

* Update Effect.swift

* Update Effect.swift
2021-03-15 10:27:56 -04:00
Brandon Williams
ea55ef174e Fix fireAndForget on iOS 13.2 (#240)
* Fix fireAndForget on iOS 13.2

* Drop Xcode 11.2.1, too flakey
2020-07-29 13:06:20 -04:00
Stephen Celis
21f2dd52ae Merge debug reducer to avoid Combine leak (#195) 2020-06-22 10:43:18 -04:00
Stephen Celis
882e13ffe5 Update Naming of Navigation Case Studies (#177) 2020-06-08 17:40:46 -04:00
Anton Siliuk
ef465884f9 Replace 'receive(subscriber:)' with 'subscribe()' (#158) 2020-05-30 12:19:08 -04:00
Brandon Williams
1005bbd393 Signpost instrumentation of reducers (#142)
* Signpost higher-order reducer.

* cleanup

* guard

* clean up

* wip

* more

* wip

* wip

* wip

* clean up

* clean up

* wip

* run

* wip

* wip

* clean up

* Update Makefile

* No failures

* cleanup

* Update Makefile

* already guarded

Co-authored-by: Stephen Celis <stephen@stephencelis.com>
2020-05-27 10:22:10 -07:00
Johan Kool
7af4802543 Typo in Effect.swift (#108) 2020-05-16 15:25:25 -07:00
Stephen Celis
0807f9a8f8 Rename certain Effect APIs (#92)
* Rename certain Effect APIs

* Move deprecations

* Fix
2020-05-13 14:12:56 -04:00
Stephen Celis
940207c4ff Minor tweaks to Effect's API for consistency (#90) 2020-05-13 13:13:37 -04:00
Glenn Gonda
7384bd915e Documentation clean up (#11)
* fix some docs

* Update Sources/ComposableArchitecture/Reducer.swift

* Update Sources/ComposableArchitecture/CasePaths/EnumReflection.swift

Co-authored-by: Glenn Gonda <ggonda@pixsystem.com>
Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
2020-05-04 15:38:52 -04:00
Brandon Williams
d2240d0e76 The Composable Architecture
Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
2020-05-03 22:26:28 -07:00