currentOptions method

Future<Set<String>> currentOptions()

Returns the current options of the running build daemon.

Null if one isn't running.

Implementation

Future<Set<String>> currentOptions() async {
  final optionsFile = File(
    optionsFilePath(_workingDirectory, daemonSharedPath: _daemonSharedPath),
  );
  if (!await waitForFile(optionsFile)) return <String>{};
  return optionsFile.readAsLinesSync().toSet();
}