Files: 888b8752d6766cfe61cb86689a349d3d493661c6 / docs / actor.md
3460 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
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 containercode
message
Object an intial message to send newly created actor
send
sends a message to a given port
Parameters
message
Message the messageportRef
Object the port
Built with git-ssb-web