Skip to content
This repository was archived by the owner on Dec 22, 2019. It is now read-only.
This repository was archived by the owner on Dec 22, 2019. It is now read-only.

Provide more standard functions #11

Description

@leostera

I'd like to keep track of some standard functions that we will need to build up more general patterns a la OTP.

Processes

  • exit : (Pid.t, ~reason:string) => unit — force termination of an actor.
  • is_alive : Pid.t => bool — whether a Pid is alive or not
  • register : (Pid.t, ~name:string) => unit — register a Pid with a well-known name
  • unregister (~name:string) => unit — unregisters a process if it's registered.
  • where_is : (~name:string) => option(Pid.t) — find a pid registered with a name
  • registered : unit => list((Pid.t, string)) — returns a list of tuples with the Pid and name they were registered with

System

  • halt : unit => unit — notify the main scheduler we should take the system down.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions