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
Currently the generated mock objects all share access to the internals, though an Rc<RefCell<Internals>> so aren't Sync or Send. It also seems (from a cursory effort to change that to Arc<Mutex<...>>) that various of the Matcher/Expectation/Call objects/traits aren't (guaranteed) thread-safe.
With futures/tokio becoming all the rage, it would be really useful to be able to generate mocks that can be passed through future chains, but this requires Send/Sync.
The text was updated successfully, but these errors were encountered:
Currently the generated mock objects all share access to the internals, though an
Rc<RefCell<Internals>>
so aren'tSync
orSend
. It also seems (from a cursory effort to change that toArc<Mutex<...>>
) that various of theMatcher/Expectation/Call
objects/traits aren't (guaranteed) thread-safe.With futures/tokio becoming all the rage, it would be really useful to be able to generate mocks that can be passed through future chains, but this requires
Send/Sync
.The text was updated successfully, but these errors were encountered: