Skip to content

[FEATURE] - Support for !Send actors #91

Open
@Kamil729

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.

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions