From 62d4dd91b3fbebe7f168476e0969788ed3769515 Mon Sep 17 00:00:00 2001 From: Kevin Cianfarini Date: Sat, 11 Jan 2025 08:57:16 -0500 Subject: [PATCH] Update README.md --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 930622d..ce0734d 100644 --- a/README.md +++ b/README.md @@ -85,8 +85,8 @@ scheduledPulse.beat { instant -> println("$instant") } ``` Beating a pulse is a backpressure sensitive operation. If your job has not completed when the next -pulse is scheduled to occur, it will by default be cancelled. Cardiologist provides two other modes -to beat a pulse which allow jobs to run concurrently or apply backpressure. +pulse is scheduled to occur, it will by default be cancelled. Cardiologist provides another mode +to beat a pulse which allow jobs to run concurrently. ```kt import io.github.kevincianfarini.cardiologist.RecurringJobMode.* @@ -96,9 +96,6 @@ hourlyPulse.beat(mode = CancellingSequential) { instant -> longRunningOperation( // Allows jobs to run concurrently if previous job is still active. hourlyPulse.beat(mode = Concurrent) { instant -> longRunningOperation(instant) } - -// Will not emit again until previous job finishes, applying backpressure. -hourlyPulse.beat(mode = DelayBetweenSequential) { instant -> longRunningOperation(instant) } ```