diff --git a/lib/absinthe/middleware/batch.ex b/lib/absinthe/middleware/batch.ex index 4dc25ab159..fe0d116e74 100644 --- a/lib/absinthe/middleware/batch.ex +++ b/lib/absinthe/middleware/batch.ex @@ -163,7 +163,7 @@ defmodule Absinthe.Middleware.Batch do _ -> emit_timeout_event(batch_fun, timeout) - Process.exit(self(), :timeout) + exit({:timeout, timeout, batch_fun}) end end