AnyEvent::Impl::Cocoa(3pm)

AnyEvent::Impl::Cocoa3pm

Anyevent adaptor for cocoa::eventloop

Usage

    use AnyEvent;
    use Cocoa::EventLoop;
    
    # do something

Overview

This module provides NSRunLoop support to AnyEvent.

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.

It does not support blocking waits.

Copyrights

   Copyright (c) 2009 by KAYAC Inc.
   Copyright (c) 2010,2011 by Marc Lehmann <[email protected]>

Releases

8 releases since Debian 7 (Wheezy); the text changed 7 times.

  1. 7
  2. 8
  3. 9
  4. 10
  5. 11
  6. 12
  7. 13
  8. Arch

Bugs

Right now, Cocoa::EventLoop (and this module) are in an early development phase and has some shortcomings and likely bugs.

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.

Authors

Daisuke Murase <[email protected]>, Marc Lehmann <[email protected]>.

From perl-anyevent 4:7.17-12 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.