Files: 67c9bed0cd1069c22fa25d29409522cfc5da85af / docs / actor.md
5046 bytesRaw
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
Table of Contents
constructor
the Kernel 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
message
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