protevus/bin/cluster.dart
2016-12-24 11:16:54 -05:00

12 lines
309 B
Dart

/// This should be used with `multiserver` as an entry
/// point for `spawnIsolates`.
library angel.cluster;
import 'dart:async';
import 'common.dart';
import 'dart:isolate';
main(args, SendPort sendPort) async {
runZoned(startServer(args, clustered: true, sendPort: sendPort),
onError: onError);
}