Comments (3)
Thanks @heckj ! Have added a temporary fix. Will have a more in depth look when I get a chance. Haven't worked out how it's supposed to handle back pressure yet.
from entwine.
As far as I can tell, PassthroughSubject sends the subscription it receives via send(subscription:) an unlimited demand and moves along. I've added some tests to master to confirm this behaviour
in ReplaySubject against a control (PassthroughSubject).
I'm interested to see what functionality this api is supposed to enable though, as theoretically a subscription sent via a subject would be shared amongst all its subscribers. So how would these subscribers safely attenuate demand via a shared subscriber? The greediest subscriber will set the pace for all other subscribers.
Potentially it's a glimpse of some testing utilities Apple are assembling โย a way of gathering the messages set to a subscription by a downstream subscriber. Maybe thats's what this new Record type is all about.
from entwine.
completely hypothesizing here, but I suspect itโs meant specifically for the variable demand use case. Specifically where a subscriber is taking in data at a specific rate in response to back pressure and wants to vary that rate over the lifetime of available data from the publisher.
from entwine.
Related Issues (15)
- ReplaySubject inconsistent behavior ? HOT 7
- ReplaySubject shouldn't keep it's values after all subscriptions are removed HOT 2
- Entwine doesn't appear to be happy with Xcode 11.2/Swift 5.1 HOT 5
- TestablePublisher failed after receiving subscriptions . HOT 2
- Feature request: proper switchToLatest and switchMap operators workaround
- Unable to create `TestScheduler.Configuration` HOT 4
- Test Publishers.CollectByTime with TestScheduler HOT 17
- Testing a publisher on main thread seems to break test HOT 1
- Unexpected behaviour/result from TestableSubscriber HOT 2
- `swift test` failing out of the box with the repo on Mojave HOT 1
- Could not find module 'Entwine' for target 'x86_64-apple-ios-simulator'; found: arm64, arm64-apple-ios-simulator HOT 12
- Add toBlocking operator like RxSwift HOT 1
- consider changing TestSubscriber.sequence to something else HOT 3
- using EntwineTest to compare results when the underlying type is a tuple - kind of awkward HOT 3
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 entwine.