stop method

  1. @override
Future<StudyDeploymentStatus?> stop(
  1. String studyDeploymentId
)
override

Stops the study deployment with studyDeploymentId.

Returns null if the deployment is unknown.

Implementation

@override
Future<StudyDeploymentStatus?> stop(String studyDeploymentId) async {
  if (_repository[studyDeploymentId] == null) return null;

  StudyDeployment deployment = _repository[studyDeploymentId]!;
  deployment.stop();
  return deployment.status;
}