Closed eldenpark closed 1 year ago
It turns out this wasn't the fault of "async-trait". Check out my question answered at the rust lang forum (https://users.rust-lang.org/t/future-is-not-sync-when-calling-async-fn-of-dyn-trait-obj-in-another-async-fn/83285/4) for those curious. Closing this issue.
I came across this issue a few days back and I can't seem to figure out what the cause of it is in the first place let alone how to deal with it.
I'm invoking an async method that in itself calls another async method of a struct (async-trait constrained method). It says 'future' is not Sync, and I tried with every possible
dyn Trait + Send + Sync
,unsafe impl Send/Sync
bandage wherever possible to no avail. Could somebody give me a clue as to where this issue is coming from?EDIT That driver method is type constrained inside