pub fn wake(
config: &ClientConfig,
common_dir: &Path,
notices: &mut dyn Write,
) -> Result<(), ClientFailure>Expand description
What: Tells the service that work items were written for a repository, starting it through the operating system when it is not running, and returns once the service has taken the message. Why: The wrapper never starts the service or runs the work itself; the message is the only thing the service needs to look at the repository’s work directory. The connection closes when the service has read the line, which is the confirmation that it will act.
In TS you’d write (pseudocode):
await wake(config, commonDir)