migrate task/spawn.rs to LinearSet