In the case where one wants to run its own event loop, one is tempted to replace the lcb_wait calls by stuff like event_base_loop(evbase, 0) or even event_base_loop(evbase, EVLOOP_NONBLOCK) (when the latter is used, it provides a very nice performance improvement by the way). But that might be a bit short sighted, as lcb_wait does a lot more stuff, like calling lcb_update_server_timer. Can you tell me what that is for?
I might also rephrase my question by: what would be the best way for replacing lcb_wait with an event loop. I’m sorry, but the example code from the SDK and the blog posts that go with it are fairly oriented ‘proof that event loops can be used’, not really ‘how event loops must be integrated’.