Skip to content

Commit

Permalink
chore: Update README with waitForInFlightMessages info
Browse files Browse the repository at this point in the history
  • Loading branch information
barwin committed Jan 23, 2024
1 parent bc1a360 commit 5ee2fc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,10 @@ By default, the value of `abort` is set to `false` which means pre existing requ
`consumer.stop({ abort: true })`
Optionally, you can wait for any in flight messages to complete before stopping the consumer by passing `waitForInFlightMessages: true` in the options object.
`consumer.stop({ waitForInFlightMessages: true, waitTimeMs: 30000 });`
### `consumer.isRunning`
Returns the current polling state of the consumer: `true` if it is actively polling, `false` if it is not.
Expand Down

0 comments on commit 5ee2fc2

Please sign in to comment.