Skip to content

How to dynamicly import actors /services? #1335

Answered by Andarist
RafalFilipek asked this question in General
Discussion options

You must be logged in to vote

It's not a collision with anything. The reason why this doesn't work is simpler: assign is always synchronous so you can't use async functions within it.

Notice how this is a good thing - import() is an async operation and it can fail. To provide a stellar UX/fault-tolerant logic you must handle this with appropriate error handling etc.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by RafalFilipek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants