in reply to Using Net:Etcd from inside AnyEvent Callback leads to Recorsive Blocking Wait Attempted

Usually, a module using AnyEvent should also expose the asynchronous versions of the methods, but this is not apparent to me in Net::Etcd.

I think the problematic part is in Net::Etcd::Role::Actions::_build_request, which , instead of only building (and initiating) the request also waits for its completion.

Maybe you can work around this by patching _build_request but I think you will end up (re)writing most of the Etcd actions in an asynchronous manner...

  • Comment on Re: Using Net:Etcd from inside AnyEvent Callback leads to Recorsive Blocking Wait Attempted
  • Download Code

Replies are listed 'Best First'.
Re^2: Using Net:Etcd from inside AnyEvent Callback leads to Recorsive Blocking Wait Attempted
by einhverfr (Friar) on Oct 29, 2023 at 08:52 UTC
    Yeah I am thinking I might need to fork Net::Etcd and offer an AnyEvent::Etcd instead, but first seeing if I can get around the problem with Coro.