pub fn member_of(pid: i32) -> Option<TreeMember>Expand description
What:
The root of a tree as a member: its pid and the start time that proves later that it is still that process.
Why:
descendants_of lists only what is below a process, and a stop must wait for the process itself too.
A process that has ended, or is a zombie, is no member.
In TS you’d write (pseudocode):
async function memberOf(pid: number): Promise<TreeMember | undefined>;