You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 12, 2022. It is now read-only.
I want to make my functions generic over an Environment. I can do that over the runtimes in this crate but when I pass in the real tokio runtime I cannot due to orphan rules. If I wrap and implement, I get that Environment requires Clone and tokio::runtime::Runtime does not implement it.
I ended up doing this (not sure if I need Mutex or not, I guess not because Runtime is Send and Sync):
I want to make my functions generic over an
Environment. I can do that over the runtimes in this crate but when I pass in the real tokio runtime I cannot due to orphan rules. If I wrap and implement, I get thatEnvironmentrequiresCloneandtokio::runtime::Runtimedoes not implement it.I ended up doing this (not sure if I need
Mutexor not, I guess not becauseRuntimeisSendandSync):