Function spin_once

Source
pub fn spin_once(
    node: Arc<Node>,
    timeout: Option<Duration>,
) -> Result<(), RclrsError>
Expand description

Polls the node for new messages and executes the corresponding callbacks.

See WaitSet::wait for the meaning of the timeout parameter.

This may under some circumstances return SubscriptionTakeFailed, ClientTakeFailed, ServiceTakeFailed when the wait set spuriously wakes up. This can usually be ignored.