[Doc] provider is arc'ed internally #2080
Labels
c-provider
documentation
Improvements or additions to documentation
question
Further information is requested
Component
provider, pubsub
What version of Alloy are you on?
alloy v0.11.1
Operating System
macOS (Apple Silicon)
Describe the bug
DynProvider in alloy v0.11.1 is really useful but I am having the following issue for functions that take
Arc<P> where P: Provider
as an argument.In the example below changing
provider: Arc<P>
toprovider: P
fixes the problem but I am not sure that's ideal and many libraries have functions that requireArc<P>
.DynProvider is a wrapper around an Arc but not directly an Arc and the functions above expects
Arc<P>
which results in a type mismatch.Perhaps adding a method like follows would help - I'm not sure -.
The text was updated successfully, but these errors were encountered: