Mojo implementation?

Marc Lehmann schmorp at schmorp.de
Sat Oct 24 22:46:13 CEST 2020


On Fri, Oct 23, 2020 at 02:06:19PM -0400, Felipe Gasper <felipe at felipegasper.com> wrote:
> 
> 	I notice that there’s no AnyEvent::Impl::Mojo module … is this by design, or has just no one wanted to build such an interface?

I didn't know Mojo was an event loop (it looks to be some kind of web
framework to me). In that case, the correct way to proceed would be for
Mojo to *use* AnyEvent: Using AnyEvent as a generic event loop in higher
level code is what it is designed for.

Doing it the wrong way around means Mojo could never use AnyEvent itself.

Digging a bit deeper, it seems Mojo already uses EV, which would make it
trivially compatible with AnyEvent, and according to the author the way it
is meant to be used with AnyEvent.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the anyevent mailing list