default

fun default(dispatcher: CoroutineDispatcher = Dispatchers.Main, interval: Duration = 500.milliseconds, chunkSize: Int = 10): BatchSchedulerFactory

Create a new BatchScheduler factory with built-in scheduler implementation.

Parameters

dispatcher

Coroutine dispatcher for the main thread.

interval

Interval for batching tasks.

chunkSize

Maximum number of tasks to execute in a batch.