Files: 979a3baec32a154440a1d6bb659f2130326a0c4f / docs / kernel.md
3445 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
queue
adds a message to this containers message queue
Parameters
run
run the kernels code with a given enviroment
Parameters
message
object the message to runinit
boolean whether or not to run the intialization routine (optional, defaultfalse
)
Returns Promise
incrementTicks
updates the number of ticks that the container has run
Parameters
count
Number the number of ticks to add
createMessage
creates a new message
Parameters
opts
data
any
send
sends a message to a given port
Parameters
port
message
Message the messageportRef
Object the port
Built with git-ssb-web