pub unsafe extern "C" fn udsWaitDataAvailable(
    bindcontext: *const udsBindContext,
    nextEvent: bool,
    wait: bool
) -> bool
Expand description

Waits for the bind event to occur, or checks if the event was signaled. This event is signaled every time new data is available via udsPullPacket().

§Returns

Always true. However if wait=false, this will return false if the event wasn’t signaled.

§Arguments

  • bindcontext - The bind context.
  • nextEvent - Whether to discard the current event and wait for the next event.
  • wait - When true this will not return until the event is signaled. When false this checks if the event was signaled without waiting for it.