platform/bin/cluster.dart

12 lines
286 B
Dart
Raw Normal View History

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 {
runZoned(startServer(args, sendPort: sendPort), onError: onError);
2016-12-24 16:12:50 +00:00
}