-
Would it be possible to provide async KeyPath access to
Even if it wasn't possible to do with dependency properties it would be useful for inline Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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. |
Beta Was this translation helpful? Give feedback.
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.