Skip to content
Discussion options

You must be logged in to vote

The .create endpoint on the location manager is a long living effect because it is what sends back all of the delegate methods from the location manager delegate:

https://github.com/pointfreeco/composable-core-location/blob/9e9f1809ba52cc5f1b157c726b87e4e7ce4dbefd/Sources/ComposableCoreLocation/Interface.swift#L178-L239

So you will never want to concatenate something after it. I suppose you could create an alternate API of this dependency that separates a .create endpoint from a .delegate endpoint, but I don't see a benefit to doing that right now.

Also, the .merge in this cause is fine because .create executes synchronously to create the location manager, and so it completely fine to ref…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@ferologics
Comment options

@mbrandonw
Comment options

@ferologics
Comment options

Comment options

You must be logged in to vote
1 reply
@ferologics
Comment options

Answer selected by ferologics
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants