-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathindex.js
More file actions
33 lines (26 loc) · 839 Bytes
/
index.js
File metadata and controls
33 lines (26 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* Copyright (c) 2016-2018 Untu, Inc.
* This code is licensed under Eclipse Public License - v 1.0.
* The full license text can be found in LICENSE.txt file and
* on the Eclipse official site (https://www.eclipse.org/legal/epl-v10.html).
*/
'use strict';
/**
* Exports default actor system.
*/
let ActorSystem = require('./lib/actor-system.js');
/**
* Creates a new actor system with specified options.
*
* @param {Object} [options] Actor system options.
* @returns {ActorSystem} New actor system.
*/
module.exports = function(options) {
return new ActorSystem(options);
};
// Explicitly-named function alias for creating actor system.
module.exports.createSystem = module.exports;
module.exports.rootActor = function() {
return ActorSystem.default().rootActor();
};
module.exports.inherits = ActorSystem.inherits;