Comments (4)
I'm not opposed to simply pulling DemandBuffer from CombineExt into the project to deal with back pressure but I have to say that limiting demand for UI events is a highly unlikely use case. Do you have such a practical use case or are you more interested in the technical completeness ?
Thanks
from combinecocoa.
If I have a subscriber with a request that is not unlimited, it is simply ignored. The use case would be starting fetches
flatmap(maxPublisher: .max(2) ) { url in URLSession.default.dataTaskPublisher(for url:) }
the maxPublisher allows me to decide how many network requests I want to do concurrently. once the flatmap is finished with one network request, it will send a new demand to its publisher. and receive the new value. This helps me to do batch requests with flatmap. I can also set max(1) to do my network requests in serial. But for this to work properly the upstream publisher needs to fulfill the demand handling.
from combinecocoa.
Thanks, I think you misunderstood what I'm asking.
I'm asking what is the use case for back pressuring UI events (like ControlEvent/ControlTarget publishers) ?
flatMap itself still respects back pressure so using the format you mentioned here shouldn't be affected by CombineCocoa to the best of my understanding.
from combinecocoa.
Closing for now. If you have additional details / context on this please let me know and I can reopen. Thank you! :)
from combinecocoa.
Related Issues (20)
- `didSelectItemPublisher` from collection view only pushes element to latest subscriber HOT 1
- Only last UITextView subscriber receives events HOT 2
- FeatureRequest: Add handlers for selectors HOT 4
- How to use in `UIImagePickerController`
- UICollectionView Crash when using delegate publishers and UICollectionViewDiffableDataSource
- Combine Cocoa fails to archive with Xcode 13 RC HOT 5
- UIScrollView publishers issue in version 0.4.0 HOT 1
- When using UIScrollViewDelegateProxy and UICollectionViewDelegateProxy, one is ignored HOT 1
- Collection view publishers should not have an effect before subscription
- Failed to build a project with latest version
- Memory Leaks in TapPublisher HOT 3
- UITextField textPublisher emitting twice HOT 4
- can't assign Publisher to Button Tapped Publisher HOT 3
- button can not touch up HOT 1
- button can not touchUpInside
- UICollctionView did not work as expected. When I use colltionView to listen to both didScollPublish and didSelectedItemPublisher
- Using private handleEvent API HOT 10
- tableView(_:viewForHeaderInSection:) delegate method cannot be used HOT 2
- `reachedBottomPublisher` offset not working as expected. HOT 1
- Privacy Manifest HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from combinecocoa.