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?
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?