On Sat, Oct 17, 2015 at 11:11 AM, Gerald Richter <[email protected]> wrote: > Hi, > > as far as I see all calls to Lucy are synchronous. > > I there are way to use it together with AnyEvent and/or Coro without > blocking the whole system for the time of the Lucy calls?
Hi Gerald, The only way I think it could work would be to launch a concurrent independent process/thread on which Lucy does work. A call to interact with the Lucy thread would then fire off work to be done on the separate thread and register a callback signaling the main thread when the work is done. That's effectively what we do in LucyX::Remote::ClusterSearcher, though that's using a select loop. Marvin Humphrey
