Skip to content

Accessing actor properties via Dependency KeyPaths #41

Answered by mbrandonw
jayhickey asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jayhickey, I don't think this is possible for a number of reasons, e.g. neither key paths nor property wrappers are well integrate with async.

However, it's possible to use actors for dependencies (and encouraged) without literally making your dependency an actor. You can just use one on the inside of the live implementation. We have an example of this in our standups demo (SpeechClient) and we have a few examples over in isowords.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jayhickey
Comment options

Answer selected by jayhickey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants