Child tasks take a ref to their parents
This is so that when a child dies after the parent, it still holds a valid pointer and can call supervisor->kill() safely.
Showing
src/test/run-fail/spawnfail.rs
0 → 100644
想要评论请 注册 或 登录