# `Shardex.Adapter.Generic`
[🔗](https://github.com/epinault/shardex/blob/v0.1.0/lib/shardex/adapter/generic.ex#L1)

Adapter for any pool: you provide the child spec and the ref.

    es_1: {Shardex.Adapter.Generic,
           child_spec: {MyApp.ES.Cluster1, []},
           ref: MyApp.ES.Cluster1}

Options:

  * `:ref` (required) - value passed to callers
  * `:child_spec` - any `Supervisor.child_spec/2` input; omit for pools started elsewhere
  * `:run` - optional `(ref, fun -> result)` function, or `{m, f, a}` called as
    `apply(m, f, [ref, fun | a])`, to wrap calls in context

---

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