[ad_1]
I’m organising a sink like so:
identify.writer
.removeDuplicates()
.obtain(on: RunLoop.predominant)
.sink { [weak self] config in
guard let self = self else { return }
// this closure will get referred to as instantly at setup although the @Printed property `identify` was already setup and didn't change
}.retailer(in: &subscribers)
So, I am clearly lacking one thing right here. Why is sink referred to as as soon as at setup although identify didn’t change? I can keep away from this habits through the use of the dropFirst() operator however, I might like to know why the closure is all the time referred to as as soon as instantly after setup?
Why is that?
[ad_2]
