From bc307d12c9f1778f2da0c175da97cb9d5c755a51 Mon Sep 17 00:00:00 2001 From: Mateusz Korszun Date: Wed, 27 May 2020 21:15:28 +0200 Subject: [PATCH] Bump min supported elixir version to 1.8 (#184) * Update consumer docs - remove `spawn` reference in the consumer concurrency mode * Drop support for `elixir 1.7` - it is old enough * Test with `OTP22` on travis as well --- .travis.yml | 2 +- lib/consumer.ex | 4 ++-- mix.exs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 28173f7..974438b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,12 +1,12 @@ language: elixir elixir: - - 1.7 - 1.8 - 1.9 - 1.10 otp_release: - 21.0 + - 22.0 sudo: required diff --git a/lib/consumer.ex b/lib/consumer.ex index 320cf64..5ae1f09 100644 --- a/lib/consumer.ex +++ b/lib/consumer.ex @@ -63,8 +63,8 @@ defmodule GenRMQ.Consumer do [recommended](https://www.rabbitmq.com/priority.html#resource-usage). `concurrency` - defines if `handle_message` callback is called - in separate process using [spawn](https://hexdocs.pm/elixir/Process.html#spawn/2) - function. By default concurrency is enabled. To disable, set it to `false` + in separate process using [supervised task](https://hexdocs.pm/elixir/Task.Supervisor.html). + By default concurrency is enabled. To disable, set it to `false` `terminate_timeout` - defines how long the consumer will wait for in-flight Tasks to complete before terminating the process. The value is in milliseconds and the default diff --git a/mix.exs b/mix.exs index 7d05432..95e8075 100644 --- a/mix.exs +++ b/mix.exs @@ -7,7 +7,7 @@ defmodule GenRMQ.Mixfile do [ app: :gen_rmq, version: @version, - elixir: "~> 1.7", + elixir: "~> 1.8", start_permanent: Mix.env() == :prod, elixirc_paths: elixirc_paths(Mix.env()), deps: deps(),