Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[S17] improve the description of squish/uniq :expires
  • Loading branch information
Carl Masak committed May 18, 2014
1 parent ecfddec commit 94cb8d8
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions S17-concurrency.pod
Expand Up @@ -654,17 +654,20 @@ Produces a C<Supply> that provides its original's Supply values twice.
my $u = $s.uniq( :as( {$_} ), :with( &[===] ), :expires(1) );

Produces a C<Supply> that only provides unique values, as defined by the
optional C<as> and C<with> named parameters (same as L<List.uniq>). Optionally
takes an C<expires> named parameter to specify how long a value seen should
remain considered to have been seen (in seconds).
optional C<as> and C<with> named parameters (same as L<List.uniq>). The
optional C<expires> parameter specifies how long to wait (in seconds) before
"resetting" and not considering a value to have been seen, even if it's the
same as an old value.

=item squish

my $q = $s.squish( :as( {$_} ), :with( &[===] ), :expires(1) );

Produces a C<Supply> that only provides sequentially different values, as
defined by the optional C<as> and C<with> named parameters (same as
L<List.squish>).
L<List.squish>). The optional C<expires> parameter specifies how long to wait
(in seconds) before "resetting" and not squishing a new value with an old one,
even if they are the same.

=item max

Expand Down

0 comments on commit 94cb8d8

Please sign in to comment.