Skip to content

Add link and monitor operations for actors #131

@ElFantasma

Description

@ElFantasma

Erlang-style process relationships, adapted to Spawned's type system (no Pids — uses ActorRef<A> and Recipient<M>).

Linking (bidirectional):

  • When a linked actor stops, the other is notified (and stopped, unless trapping exits)
  • start_linked() — start an actor linked to the caller

Monitoring (one-way):

  • Observer receives a notification when the monitored actor stops
  • monitor()MonitorRef
  • demonitor(monitor_ref)

Exit trapping:

  • trap_exit() — convert linked exit signals into messages instead of stopping

Design notes:

Part of Phase 3 (Supervision Trees) — see docs/ROADMAP.md.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions