1AnyEvent::Impl::Cocoa(3U)ser Contributed Perl DocumentatiAonnyEvent::Impl::Cocoa(3)
2
3
4
6 AnyEvent::Impl::Cocoa - AnyEvent adaptor for Cocoa::EventLoop
7
9 use AnyEvent;
10 use Cocoa::EventLoop;
11
12 # do something
13
15 This module provides NSRunLoop support to AnyEvent.
16
17 NSRunLoop is an event loop for Cocoa applications, wrapped by
18 Cocoa::EventLoop. By using this module, you can use Cocoa based API in
19 your AnyEvent application, or AnyEvent within Cocoa applications.
20
21 It does not support blocking waits.
22
24 Right now, Cocoa::EventLoop (and this module) are in an early
25 development phase and has some shortcomings and likely bugs.
26
27 For example, there seems to be no way to just handle a single event
28 with Cocoa (is there nothing they can implement properly?), so this
29 module currently wakes up at least ten times a second when waiting for
30 events. Also, events caused by timers might get delayed by up to 0.1
31 seconds.
32
34 Daisuke Murase <typester@cpan.org>, Marc Lehmann <schmorp@schmorp.de>.
35
37 Copyright (c) 2009 by KAYAC Inc.
38 Copyright (c) 2010,2011 by Marc Lehmann <schmorp@schmorp.de>
39
40
41
42perl v5.36.0 2023-01-19 AnyEvent::Impl::Cocoa(3)