# `AshGraphql.Subscription.Batcher`
[🔗](https://github.com/ash-project/ash_graphql/blob/v1.9.4/lib/subscription/batcher.ex#L5)

If started as a GenServer, this module will batch notifications and send them in bulk.
Otherwise, it will send them immediately.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `drain`

# `handle_continue`

# `init`

Config options

`async_limit` (default 100):
 if there are more than `async_limit` notifications, we will start to backpressure

`send_immediately_threshold` (default 50): 
 if there are less then `send_immediately_threshold` notifications, we will send them immediately

`subscription_batch_interval` (default 1000):
 the interval in milliseconds the batcher waits for new notifications before sending them

# `publish`

# `start_link`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
