Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Kebab-case Supply.schedule-on
  • Loading branch information
lizmat committed Mar 12, 2015
1 parent 4f024c5 commit bcacc15
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S17-concurrency.pod
Expand Up @@ -539,11 +539,11 @@ Takes a closure and, for each supplied value, schedules the closure to run on an

my $m = $t.migrate;

Produces a continuous C<Supply> from a C<Supply>, in which each value is a C<Supply>. As soon as a new C<Supply> appears, it will close the current C<Supply> and provide values from the new C<Supply>. Can be used in combination with C<schedule_on>.
Produces a continuous C<Supply> from a C<Supply>, in which each value is a C<Supply>. As soon as a new C<Supply> appears, it will close the current C<Supply> and provide values from the new C<Supply>. Can be used in combination with C<schedule-on>.

=item schedule_on
=item schedule-on

my $o = $m.schedule_on( $scheduler );
my $o = $m.schedule-on( $scheduler );

This allows a C<Supply>'s emit/done/quit to be scheduled on another scheduler. Useful in GUI situations, for example, where the final stage of some work needs to be done on some UI scheduler in order to have UI updates run on the UI thread.

Expand Down

0 comments on commit bcacc15

Please sign in to comment.