Skip to content

Commit

Permalink
call then on promise instead of bool in example
Browse files Browse the repository at this point in the history
  • Loading branch information
hwanders authored and brainkim committed Jun 11, 2020
1 parent 069aefb commit 17d1d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/06_inverted_repeaters.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Sometimes you want to create async iterators which respond to calls to `next` as
const timer = new Repeater(async (push, stop) => {
const timers = [];
let stopped = false;
stopped.then(() => (stopped = true));
stop.then(() => (stopped = true));
try {
while (!stopped) {
let resolve;
Expand Down

0 comments on commit 17d1d31

Please sign in to comment.