workspaceProcessCensus function

Future<WorkspaceProcessCensus> workspaceProcessCensus(
  1. String workspacePath
)

WorkspaceProcessCensus against the live process table.

The ONE census both a kill fence and a pre-delete gate read, so the set a teardown signals is exactly the set it then refuses to delete around.

Implementation

Future<WorkspaceProcessCensus> workspaceProcessCensus(
  String workspacePath,
) async => (
  stores: await workspaceStoreProcesses(workspacePath),
  residents: await workspaceResidents(
    workspacePath,
    selfPid: pid,
    runProcess: Process.run,
  ),
);