Skip to content

Commit

Permalink
fix repeat task
Browse files Browse the repository at this point in the history
  • Loading branch information
CziSKY committed Jan 15, 2024
1 parent c6e3bb5 commit ed1e57c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class AsynchronousRepeatChain<T>(
submit(async = true, period = period, delay = delay) {
if (predicate()) {
future.complete(block())
cancel()
}
}
return future.await()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class SynchronousRepeatChain<T>(
submit(period = period, delay = delay) {
if (predicate()) {
future.complete(block())
cancel()
}
}
return future.await()
Expand Down

0 comments on commit ed1e57c

Please sign in to comment.