Function tokio_util::sync::cancellation_token::tree_node::move_children_to_parent
source ยท fn move_children_to_parent(node: &mut Inner, parent: &mut Inner)
Expand description
Moves all children from node
to parent
.
parent
MUST have been a parent of the node when they both got locked,
otherwise there is a potential for a deadlock as invariant #2 would be violated.
To acquire the locks for node and parent, use with_locked_node_and_parent
.