X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FBit-MorseSignals.git;a=blobdiff_plain;f=lib%2FBit%2FMorseSignals%2FEmitter.pm;fp=lib%2FBit%2FMorseSignals%2FEmitter.pm;h=7e11c1dbe66f1865bb9343af5eebaf5f0bb6959e;hp=a384d148a6c48c36e65c93b9254cc57b2a9ae63e;hb=68eb455d71803aa45fd67f97c9dd628fff59e1c4;hpb=414fb089b6694276e8695dd29becb3adb4055fe8 diff --git a/lib/Bit/MorseSignals/Emitter.pm b/lib/Bit/MorseSignals/Emitter.pm index a384d14..7e11c1d 100644 --- a/lib/Bit/MorseSignals/Emitter.pm +++ b/lib/Bit/MorseSignals/Emitter.pm @@ -64,6 +64,8 @@ sub _count_bits { =head2 C + my $bme = Bit::MorseSignals::Emitter->new; + L object constructor. Currently does not take any optional argument. =cut @@ -81,7 +83,9 @@ sub new { return $self; } -=head2 C<< post $msg, < type => $type > >> +=head2 C + + $bme->post($msg, type => $type); Adds C<$msg> to the message queue and, if no other message is currently processed, dequeue the oldest item and prepare it. The type is automatically chosen, but you may want to try to force it with the C option : C<$type> is then one of the C constants listed in L