Documentation for routine done

Documentation for routine done, assembled from the following types:

class Supplier

From Supplier

(Supplier) method done

method done(Supplier:D:)

Calls the done callback on all the taps that have one.

my $supplier = Supplier.new;
my $supply   = $supplier.Supply;
$supply.tap(-> $v { say $v }done => { say "no more answers" });
$supplier.emit(42);
$supplier.done;

Will output:

42
no more answers

class Tap

From Tap

(Tap) method done

method done(Tap:D:)

Returns the callback that is called on successfully shutting down a channel, if any.