Files: 8c18358702ca2a0a21af3147cd8ff67d5773f91e / docs / actor.md
5055 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 containers 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 container 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