Skip to content

Commit 13d61d7

Browse files
committed
Merge pull request #396 from dbrunton/patch-9
live method
2 parents 614044b + 7e56f2e commit 13d61d7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

doc/Type/Supply.pod

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,13 @@ The C<Promise> method is most useful when dealing with supplies that will tend
120120
to produce just one value, when only the final value is of interest, or when
121121
only completion (successful or not) is relevant.
122122
123+
=head2 method close
124+
125+
method close(Supply:D: Tap:D $t)
126+
127+
Closes the given tap, this is, calls its C<close> callback (if any), and
128+
prevents it from getting any more values flowing through the supply.
129+
123130
=head2 method live
124131
125132
method live(Supply:D:) returns Bool:D
@@ -128,7 +135,7 @@ Returns C<True> if the supply is "live", that is, values are emitted to taps
128135
as soon as they arrive. Always returns C<True> in the default C<Supply> (but
129136
for example on the supply returned from C<Supply.from-list> it's C<False>).
130137
131-
say Supply.new.live; # True
138+
say Supplier.new.Supply.live; # True
132139
133140
=head2 method schedule-on
134141

0 commit comments

Comments
 (0)