Constructor
new Swarm(config) → {Swarm}
Create an instance of a Swarm.
Parameters:
Name | Type | Description |
---|---|---|
config |
Object | Configuration object. |
- Source:
Returns:
Instance of the Swarm.
- Type
- Swarm
Methods
(async) start() → {Promise}
Begin computing.
- Source:
Returns:
Resolves to instance of Swarm.
- Type
- Promise
trust(source)
Explicitly trust an EventEmitter to provide messages using
the expected Interface, providing Message objects as
the expected Type.
Parameters:
Name | Type | Description |
---|---|---|
source |
EventEmitter | Actor to utilize. |
- Source: