git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 7c1b9abb1401216b0a7325dfb2213933eda8826a

Files: 7c1b9abb1401216b0a7325dfb2213933eda8826a / docs / hypervisor.md

3292 bytesRaw

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

Table of Contents

constructor

The Hypervisor manages module instances by instantiating them and destroying them when possible. It also facilitates locating Containers

Parameters

send

sends a message(s). If an array of message is given the all the messages will be sent at once

Parameters

Returns Promise a promise that resolves once the receiving module is loaded

loadActor

loads an actor from the tree given its id

Parameters

Returns Promise&lt;Actor>

newActor

creates an actor from a module and code

Parameters

Returns ActorRef

createModule

creates a modref from a module and code

Parameters

Returns ModuleRef

createActor

creates an instance of an Actor

Parameters

Returns ActorRef

createStateRoot

creates a state root when scheduler is idle

Returns Promise

setStateRoot

set the state root. The promise must resolve before creating or sending any more messages to the hypervisor

Parameters

Returns Promise

registerModule

registers a module with the hypervisor

Parameters

registerDriver

register a driver with the hypervisor

Parameters

Built with git-ssb-web