|C#||Visual Basic||Visual C++|
public static int HandleEventsTimeout( MonoUsbSessionHandle sessionHandle, ref UnixNativeTimeval tv )
Public Shared Function HandleEventsTimeout ( _ sessionHandle As MonoUsbSessionHandle, _ ByRef tv As UnixNativeTimeval _ ) As Integer
libusb determines "pending events" by checking if any timeouts have expired and by checking the set of file descriptors for activity.
If a non-zero timeval is passed and no events are currently pending, this function will block waiting for events to handle up until the specified timeout. If an event arrives or a signal is raised, this function will return early.