Skip to content

allow injection of external libuv event loop#679

Open
not-implemented wants to merge 2 commits into
sewenew:masterfrom
godmodelabs:external-libuv-loop
Open

allow injection of external libuv event loop#679
not-implemented wants to merge 2 commits into
sewenew:masterfrom
godmodelabs:external-libuv-loop

Conversation

@not-implemented

Copy link
Copy Markdown

For integrating redis-plus-plus directly into existing libuv event loops, the loop should be injectable.

I tried it now via EventLoop::EventLoop(uv_loop_t* external_loop) which seems to work fine also in production.

The second commit implements EventLoop.drain() for a graceful shutdown which is needed to cleanly exit the external loop.

Is there any chance to get it merged to upstream? :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant