Skip to content

Conversation

@EnvOut
Copy link
Owner

@EnvOut EnvOut commented Nov 24, 2024

Based on the feedback provided for uactor, I’ve rewritten part of the library. Key updates include:

  1. Simplified actor initialization:

    • Replaced macros with regular method calls.
    • Streamlined the initialization process.
  2. Added more join points in context/actor for service logic (e.g., metrics, error handling).

  3. Introduced an alias for references using an unbounded MPSC channel:

    • Actor1Ref<mpsc::Sender<Actor1Msg>> -> Actor1MpscRef.
  4. Finalized the shared state feature:

    • An actor can now have shared state that is embedded within its reference.
    • Access the state via:
      actor1_ref.state()
    • Use case example in arbiter/upstream:
      actor1_ref.state().downstreams_count()

@EnvOut EnvOut merged commit efd5ac5 into main Nov 24, 2024
1 check passed
EnvOut added a commit that referenced this pull request Nov 24, 2024
…ts into context (#6)

* removed garbage

* restructured

* updated actors

* use Ref alias and code clean
EnvOut added a commit that referenced this pull request Nov 24, 2024
…ts into context (#6)

* removed garbage

* restructured

* updated actors

* use Ref alias and code clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants