Elektrine lite

← Feed

@vrutberg@masto.nu

Post #2282301

2026-02-12 10:25 UTC

@mattiem@mastodon.social Oh, cool, I’ll have to check that out, thanks! I suppose going from Combine to AsyncStreams is more than just simply “migrating from Combine to AsyncStreams”, it’s also an architectural migration, which I honestly didn’t (but should’ve?) understand at first.

Replies (2)

  • @mattiem@mastodon.social 2026-02-12 10:28

    @vrutberg@masto.nu yes your right, but it’s not obvious that’s the case until you start. It’s typically quite hard. a minimum of iOS 18 helps too, so you can use “some AsyncSequence”

    Open ##2282302

  • @ole@chaos.social 2026-02-12 12:56

    @vrutberg@masto.nu @mattiem@mastodon.social Re: AsyncSequence.share(), also note this recent forum thread: https://forums.swift.org/t/new-subscribers-to-share-dont-receive-buffered-values-whats-a-tidy-option-to-get-that/84652. tl;dr: share() is more like PassthroughSubject than CurrentValueSubject.

    Open ##2282303