Files
sdk/pkg/dds/lib/src/constants.dart
Ben Konyi 7250fd6379 Reland "[ package:dds ] Add null safety support"
This reverts commit b8c5ecd5aa.

TEST=N/A

Change-Id: I38bbebe1e38bc9dbfdde764eff847aafb3e39353
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/200926
Reviewed-by: Siva Annamalai <asiva@google.com>
2021-05-24 16:59:23 +00:00

36 lines
1.1 KiB
Dart

// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
abstract class RPCResponses {
static const success = <String, dynamic>{
'type': 'Success',
};
static const collectedSentinel = <String, dynamic>{
'type': 'Sentinel',
'kind': 'Collected',
'valueAsString': '<collected>',
};
}
// Give connections time to reestablish before considering them closed.
// Required to reestablish connections killed by UberProxy.
const sseKeepAlive = Duration(seconds: 30);
abstract class PauseTypeMasks {
static const pauseOnStartMask = 1 << 0;
static const pauseOnReloadMask = 1 << 1;
static const pauseOnExitMask = 1 << 2;
}
abstract class ServiceEvents {
static const isolateExit = 'IsolateExit';
static const isolateSpawn = 'IsolateSpawn';
static const isolateStart = 'IsolateStart';
static const pauseExit = 'PauseExit';
static const pausePostRequest = 'PausePostRequest';
static const pauseStart = 'PauseStart';
static const resume = 'Resume';
}