Recommended batch size used for breaking synchronous loops in asynchronous batches.
Recommended batch size used for breaking synchronous loops in asynchronous batches. When streaming value from a producer to a synchronous consumer it's recommended to break the streaming in batches as to not hold the current thread or run-loop indefinitely.
Working with power of 2, because then for applying the modulo operation we can just do:
val modulus = scheduler.env.batchSize - 1 // ... nr = (nr + 1) & modulus
Represents the platform our scheduler runs on.
Information about the environment on top of which our scheduler runs on.