Renamed to bellroy/elm-actor-framework. It is published under that name, and new versions come out there.
Versions published as tricycle/elm-actor-framework still install under that name. 2 versions of 6 come from the new location (see their notes). 4 versions could not be recovered and cannot be installed.
Rerouted (cache, verified). The original is gone. This copy comes from a Lamdera package cache made before it went. The Lamdera package server serves a copy recovered from a Lamdera package cache from 2021-02-13.
What we checked: Rebuilt from the unpacked sources in a Lamdera package cache (5 copies agree), which Elm only writes after the published SHA-1 checked out; elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip is our own, so its SHA-1 is not the published one.
The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.
Details · package.elm-lang.org's zip: https://github.com/tricycle/elm-actor-framework/zipball/1.4.0/
Actors
Actor Intercommunication
Utility
Document
Stops a process (an Actor becomes a Process identified by a Pid after you
have spawned it).
This is also stops any processes that the targeted process might have spawned.
If the process is part of the applications view it will be removed.
stopProcess pidEvery Actor has a view, but it's up to you to determine the order and even if you want it to render.
The applications view function receives a list of outputs in the order you have added the Pids to the applications view using this function.
spawn Counter addToView
-- Spawns a `Counter` and adds it to your
-- applications view.Add an process to an address. Multiple processes can be housed under the same or multiple addresses.
Once a process is listed under an address you can send it messages by using
sendToAddress.
batch [
spawn Counter (populateAddress AllCounters)
, spawn Counter (populateAddress AllCounters)
]
-- Spawn two Counter Actors and populate the
-- same address (AllCounters).Remove a process from the applications view
Remove a process from the given address
Send a process a message using its Pid.
sendToPid pid (CounterMsg Increment)Send a message to an address that mone, a single or multiple processes might receive.
sendToAddress AllCounters (CounterMsg Increment)Batch multiple messages into a single message
batch
[ spawn Counter (populateAddress AllCounters)
, spawn Counter (populateAddress AllCounters)
, updateDocumentTitle "batch example"
]No operation, don't do anything.
spawn Counter (\_ -> noOperation)
-- Spawn a `Counter` and ignore the newly created
-- Pid by returning noOperation.Turn any msg into a Cmd.
Filter out your "MsgIn"s from a FrameworkMessage
Update the document title
This only works when using Browser.document or Browser.application.
updateDocumenTitle "New Title"
Spawn an Actor