Files: e47dbb585f72b65914431ec10f554e43226dc121 / docs / actor.md
5050 bytesRaw
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
Table of Contents
constructor
the Actor manages the varous message passing functions and provides an interface for the containers to use
Parameters
opts
Object
mintCap
Mints a new capabilitly with a given tag
Parameters
tag
any a tag which can be used to identify caps (optional, default0
)
Returns Object
queue
adds a message to this actor's message queue
Parameters
create
runs the creation routine for the actor
Parameters
message
object
Returns Promise
shutdown
Runs the shutdown routine for the actor
startup
Runs the startup routine for the actor
runMessage
run the Actor with a given message
Parameters
Returns Promise
incrementTicks
updates the number of ticks that the actor has run
Parameters
count
Number the number of ticks to add
createActor
creates an actor
Parameters
type
Integer the type id for the containermessage
Object an intial message to send newly created actor
send
sends a message to a given port
Parameters
cap
message
Message the messageportRef
Object the port
Built with git-ssb-web