mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-01 21:55:50 +00:00
`ticker` calls the given function as fast as the Seastar reactor allows and yields between each call. It may be provided a limit for the number of calls; it crashes the test if the limit is reached before the ticker is `abort()`ed. The commit also introduces a `with_env_and_ticker` helper function which creates an `environment`, a `ticker`, and passes references to them to the given function. It destroys them after the function finishes by calling `abort()`.