What is Nostr?
Adam Bell :catPOWER: /
npub14mg…j6qw
2024-06-26 19:02:56

Adam Bell :catPOWER: on Nostr: If I have two actors in Swift, what’s the “go to” approach to share data or ...

If I have two actors in Swift, what’s the “go to” approach to share data or communicate between one another.

Actor1 is processing streamed data continuously
Actor2 is processing other streamed data

Actor2 needs to inform Actor1 about some stuff, but Actor1 also needs the ability to query initial state from Actor2.

Nonisolated delegates feels like an anti-pattern (and then data isolation issues).

Is the play to have a third object or smth that owns the two actors and orchestrates data?
Author Public Key
npub14mgtsuytcjprn4098dtx3xv6myh84g0nrxtwtr9uatevz8nfwz7sqfj6qw