Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[todo] Combine cMakeRequest needs to be cancellable #14

Open
kyzmitch opened this issue Aug 20, 2021 · 0 comments
Open

[todo] Combine cMakeRequest needs to be cancellable #14

kyzmitch opened this issue Aug 20, 2021 · 0 comments
Labels
todo todo from source code

Comments

@kyzmitch
Copy link
Owner

kyzmitch commented Aug 20, 2021

// TODO: find a way to react on subscribtion cancellation to cancel http request

Wasn't able to find how to handle task cancellation for Combine Publishers. This is needed for HttpKit code to finish implementation.

The only way to cancel the Publisher is to have AnyCancellable object which can be retrieved from sink or assing functions which start the publisher right away and this is not desired.

@kyzmitch kyzmitch changed the title Combine cMakeRequest needs to be cancellable [todo] Combine cMakeRequest needs to be cancellable Aug 20, 2021
@kyzmitch kyzmitch added the todo todo from source code label Aug 20, 2021
kyzmitch added a commit that referenced this issue Nov 28, 2024
kyzmitch added a commit that referenced this issue Dec 13, 2024
* Concurrently fetch use cases if possible

* Rename of actor based interface and add another one for class based

* Inject search  bar view model (need to fix one compile error)

* Fix compilation

* Make tabs data service internal to the module

* Add base class for data service

* New files

* Add dispatch queues and promise table

* Add initial search data service code

* Register data service in locator

* Make start/init of phone tab previews coordinator sync again to fix use case registration race

* Add app assembler

* Move remaining app start data to app assembler

* Renaming

* Add a note about #14

* Re-indent params

* Implement functions in search data service and move some files

* Remove dependency on specific strategies to be able to switch between them in runtime

* Properly register auto search suggestions use case

* Better use case func names

* Domain resolving use case changes to use new data service

* Adapt search suggestions view model to the new use case and data service

* Adapt rx swift use case functions

* One more command in Search data service

* Dependencies for view model factory

* Re-indent params

* Merge async service registry class with service registry

* Fix tabs data service registration, because it has an associated type

* Fix app coordinator crash

* Use abstract protocol for the search data service to hide the implementation

* Renamed a bunch of frameworks and added view models and data services frameworks. Still there a two sendable errors.

* Fix several errors

* Fix imports in use cases module

* Fix several errors in main build target by importing new modules

* Fix not trivial problem with module verification by adding -no-verify-emitted-module-interface option to Other Swift Flags for several new modules

* Fix build

* Remove extra imports

* Add doc comments

* Minor changes

* Rename Rest client functions

* Not finished work about service data in tabs service

* Not finished work about service data in tabs service - part #2

* Not finished work about service data in tabs service - part #3 (fixed compilation)

* Add errors propagation to some use cases

* small performance optimisation for the initial tabs loading

* Return new selected tab if closed tab was selected

* Remove CottonData module and move remaining files to CoreBrowser

* new bundle ids
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
todo todo from source code
Projects
None yet
Development

No branches or pull requests

1 participant