Open
Description
Feature Description
A way to handle actors containing !Send
data.
Motivation
Often when dealing with !Send
data you spawn a dedicated thread that owns it and processes commands that comes through channel. When you want to do that while using this library you basically need to forward all messages to that thread, so it's generate boilerplate that shouldn't be needed for that.
Proposed Solution
Relaxing Actor
trait bound to not require Send
or adding new LocalActor
trait that doesn't require it. Adding spawn_local
function, similar to other spawn_*
functions, that spawns !Send
actor.
Alternatives Considered
Adding some macros to reduce boilerplate while using dedicated thread to manage !Send
data.