Files: 1aa22ba2b0c933edd5df2a76889d2cd6751baca0 / 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