Files: d5ef5217c1d00f933b0bb280efe059749202d645 / 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