1
2
3
4
5
6
7
8
9
10
11
// This is free and unencumbered software released into the public domain.

use crate::BlockResult;

pub type ProcessID = usize;

pub trait Process {
    fn id(&self) -> ProcessID;
    fn is_alive(&self) -> bool;
    fn join(&self) -> BlockResult;
}