Closed mcginty closed 3 years ago
Could we get a minimal example added which would give a compiler error before this fix is added?
Edit: Just a test would be fine, too
Added a test cc @bschwind.
It's not easy to show in this PR, but if you copy that test and run it on main
it doesn't compile because of Send
constraints.
I'd like to have a look at this later today, unless you want to merge quickly.
On integrating the new actor system with tonari's main codebase, the type system showed more restrictiveness than was necessary, making it impossible to run an
Actor
on the main thread ifActor
didn't implementSend
(which of course is unnecessary if not being spawned on a separate thread).