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
- opensuse-leap 16.0: perl-AnyEvent 7.17-160000.2.2 Β· GPL-1.0-or-later OR Artistic-1.0
- opensuse-leap 16.0: perl-AnyEvent 7.17-160000.2.2 Β· GPL-1.0-or-later OR Artistic-1.0
- opensuse-leap 16.0: perl-AnyEvent 7.17-160000.2.2 Β· GPL-1.0-or-later OR Artistic-1.0
- opensuse-leap 16.0: perl-AnyEvent 7.17-160000.2.2 Β· GPL-1.0-or-later OR Artistic-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms