Helpers for receiving systemd D-Bus signals.
Summary
Functions
Waits for a JobRemoved signal matching a job object path.
Subscribes the current process to systemd manager signals.
Removes a signal subscription returned by subscribe_manager/1.
Types
Functions
@spec await_job_removed(subscription(), String.t(), keyword()) :: {:ok, job_removed()} | {:error, Systemd.Error.t()}
Waits for a JobRemoved signal matching a job object path.
@spec subscribe_manager(pid()) :: {:ok, subscription()} | {:error, Systemd.Error.t()}
Subscribes the current process to systemd manager signals.
@spec unsubscribe(subscription()) :: :ok | {:error, Systemd.Error.t()}
Removes a signal subscription returned by subscribe_manager/1.