Files: 007b993aa86e9b1ebcc62315c01a80140cfb60d0 / 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