You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace Publisher.asyncValues with Publisher.allValues.
Apple’s Publisher.values, which turns a Combine Publisher into an async sequence, requests Subscribers.Demand.max(1) with every iteration of a for-loop. So, it's possible for publishers to send values to it faster than it can handle them, which means some values will be dropped. Publisher.allValues buffers all of the values it receives, which means it'll forward along everything it receives. Publisher.allValues could use a lot of memory if its values aren't worked off at about the same rate as they are produced.