AnyEven...l::Cocoa(3)

omg hi bestie πŸ’– welcome to the AnyEvent::Impl::Cocoa(3) manual page β€” a User Contributed Perl Documentation moment β€” aka the AnyEvent adaptor for Cocoa::EventLoop. Buckle up, it’s short but lowkey iconic.

🌸 NAME 🌸

AnyEvent::Impl::Cocoa β€” AnyEvent adaptor for Cocoa::EventLoop.


✨ SYNOPSIS ✨

use AnyEvent;
use Cocoa::EventLoop;

# do something

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so this module gives AnyEvent NSRunLoop support. That’s the whole vibe.

NSRunLoop is an event loop for Cocoa applications, wrapped by Cocoa::EventLoop. By using this module, you can use Cocoa based API in your AnyEvent application, or AnyEvent within Cocoa applications β€” both directions, slay πŸ’….

One thing tho: it does not support blocking waits. Not supported, periodt. πŸ’€


πŸ’€ BUGS πŸ’€

Right now, Cocoa::EventLoop (and this module) are in an early development phase and has some shortcomings and likely bugs. No cap, it’s giving β€œwork in progress.”

For example, there seems to be no way to just handle a single event with Cocoa (is there nothing they can implement properly? 😭), so this module currently wakes up at least ten times a second when waiting for events. Also, events caused by timers might get delayed by up to 0.1 seconds. Keep that in mind, bestie 🫢.


🫢 AUTHORS 🫢

  • Daisuke Murase <typester@cpan.org>
  • Marc Lehmann <schmorp@schmorp.de>

absolute legends, fr fr πŸ‘‘


πŸŽ€ COPYRIGHTS πŸŽ€

Copyright (c) 2009 by KAYAC Inc.
Copyright (c) 2010,2011 by Marc Lehmann <schmorp@schmorp.de>

okay that’s the whole vibe πŸ’œ signing off from AnyEvent::Impl::Cocoa(3) with perl v5.42.0, dated 2019-09-18 β€” mwah ✨

πŸ“¦ where this page comes from