Sponsored Content
Full Discussion: Mac OS XI?!
Operating Systems OS X (Apple) Mac OS XI?! Post 69270 by giiiiif on Wednesday 13th of April 2005 01:48:20 PM
Old 04-13-2005
Liger?

Since 10.4 is tiger, 10.5 should be lion, then they could make 10.6 Liger!! That would be funny, at least to me. If you're wondering, Ligers are actually real animals...a mix between a lion and tiger, they are huuuuge...much bigger than either of their lion/tiger parents.
 

We Also Found This Discussion For You

1. OS X (Apple)

Let's get a .mac top level domain! As in www.xyz.mac

ICANN, the Internet Corporation for Assigned Names and Numbers, is inviting proposals for new sponsored top level domains. This may be wishful thinking, but isn't that a chance to push for a .mac top level domain (TLD)? I for one would VASTLY like the idea of having a domain of something.mac --... (0 Replies)
Discussion started by: ropers
0 Replies
Mojo::EventEmitter(3pm) 				User Contributed Perl Documentation				   Mojo::EventEmitter(3pm)

NAME
Mojo::EventEmitter - Event emitter base class SYNOPSIS
package Cat; use Mojo::Base 'Mojo::EventEmitter'; # Emit events sub poke { my $self = shift; $self->emit(roar => 3); } package main; # Subscribe to events my $tiger = Cat->new; $tiger->on(roar => sub { my ($tiger, $times) = @_; say 'RAWR!' for 1 .. $times; }); $tiger->poke; DESCRIPTION
Mojo::EventEmitter is a simple base class for event emitting objects. METHODS
Mojo::EventEmitter inherits all methods from Mojo::Base and implements the following new ones. "emit" $e = $e->emit('foo'); $e = $e->emit('foo', 123); Emit event. "emit_safe" $e = $e->emit_safe('foo'); $e = $e->emit_safe('foo', 123); Emit event safely and emit "error" event on failure. "has_subscribers" my $success = $e->has_subscribers('foo'); Check if event has subscribers. "on" my $cb = $e->on(foo => sub {...}); Subscribe to event. $e->on(foo => sub { my ($e, @args) = @_; ... }); "once" my $cb = $e->once(foo => sub {...}); Subscribe to event and unsubscribe again after it has been emitted once. $e->once(foo => sub { my ($e, @args) = @_; ... }); "subscribers" my $subscribers = $e->subscribers('foo'); All subscribers for event. # Unsubscribe last subscriber $e->unsubscribe(foo => $e->subscribers('foo')->[-1]); "unsubscribe" $e = $e->unsubscribe('foo'); $e = $e->unsubscribe(foo => $cb); Unsubscribe from event. DEBUGGING
You can set the "MOJO_EVENTEMITTER_DEBUG" environment variable to get some advanced diagnostics information printed to "STDERR". MOJO_EVENTEMITTER_DEBUG=1 SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>. perl v5.14.2 2012-09-05 Mojo::EventEmitter(3pm)
All times are GMT -4. The time now is 03:48 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy