Skip to content

Commit 2bd66db

Browse files
committed
Some more s/subscribable/supply/
1 parent 039bbfd commit 2bd66db

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

S17-concurrency.pod

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -539,28 +539,28 @@ reached:
539539

540540
=back
541541

542-
There are some combinators that deal with bringing multiple subscribables
542+
There are some combinators that deal with bringing multiple supplies
543543
together:
544544

545545
=over
546546

547547
=item C<merge>
548548

549-
produces a subscribable containing the values produced by two
550-
other subscribables, and triggering C<done> once both of the subscribables have
549+
produces a supply containing the values produced by two
550+
other supplies, and triggering C<done> once both of the supplies have
551551
done so.
552552

553553
=item C<zip>
554554

555-
produces a subscribable that pairs together items from two other
556-
subscribables, using C<< infix:<,> >> by default or any other user-supplied
555+
produces a supply that pairs together items from two other
556+
supplies, using C<< infix:<,> >> by default or any other user-supplied
557557
function.
558558

559559
=back
560560

561561
[TODO: plenty more of these: combine_latest, while, until...]
562562

563-
These combinators that involve multiple subscribables need care in their
563+
These combinators that involve multiple supplies need care in their
564564
implementation, since values may arrive at any point on each, and possibly at
565565
the same time. To help write such combinators, the C<on> meta-combinator is
566566
useful. C<on> taps many supplies, and ensures that only one
@@ -588,8 +588,8 @@ about synchronization issues. Here is how C<zip> is implemented:
588588

589589
Thus there is never any race or other thread-safely problems with mutating the
590590
C<@as> and C<@bs>. The default behaviour, if a callable is specified along
591-
with the subscribable, is to use it for C<more> and provide a default C<done>
592-
and C<fail>. The default C<done> triggers C<done> on the result subscribable,
591+
with the supply, is to use it for C<more> and provide a default C<done>
592+
and C<fail>. The default C<done> triggers C<done> on the result supply,
593593
which is the correct semantics for C<zip>. On the other hand, C<merge> wants
594594
different semantics, and so must provide a C<done>. This is done as follows:
595595

@@ -612,7 +612,7 @@ different semantics, and so must provide a C<done>. This is done as follows:
612612
}
613613

614614
A C<fail> can be provided in a similar way, although the default - convey the
615-
failure to the result subscribable - is normally what is wanted. The exception
615+
failure to the result supply - is normally what is wanted. The exception
616616
is writing combinators related to error handling.
617617

618618
[TODO: specify C<catch> and various other error-handling related timeouts.]

0 commit comments

Comments
 (0)