2016-12-24 16:12:50 +00:00
|
|
|
/// This should be used with `multiserver` as an entry
|
|
|
|
/// point for `spawnIsolates`.
|
|
|
|
library angel.cluster;
|
|
|
|
|
|
|
|
import 'dart:async';
|
|
|
|
import 'common.dart';
|
2016-12-24 16:16:54 +00:00
|
|
|
import 'dart:isolate';
|
2016-12-24 16:12:50 +00:00
|
|
|
|
2016-12-24 16:16:54 +00:00
|
|
|
main(args, SendPort sendPort) async {
|
2017-06-10 15:24:36 +00:00
|
|
|
runZoned(startServer(args, sendPort: sendPort), onError: onError);
|
2016-12-24 16:12:50 +00:00
|
|
|
}
|