From e127da7198854434be0ba5b1cfd45e3717647a80 Mon Sep 17 00:00:00 2001 From: Vikram Rathore <162111864+yolo-vikram@users.noreply.github.com> Date: Fri, 3 Jan 2025 14:59:45 +0200 Subject: [PATCH] release 3.1.3 (#28) --- CHANGELOG.md | 5 +++++ README.md | 11 +++++++++++ mix.exs | 2 +- 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d21faf0..eb2dc81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## [3.1.3] (2025-01-03) + +### Enhancements +- Add asynchronous message publishing. + ## [3.1.2] (2024-08-16) ### Bug fixes diff --git a/README.md b/README.md index fb0937a..d05e551 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ Consumer server for RabbitMQ with message publishing functionality. - [Reply description](#Reply-description) - [The default exchange](#The-default-exchange) - [Publish message](#Publish-message) + - [Publish message asynchronously](#Publish-message-asynchronously) - [Checking connections](#Checking-connections) - [Contributing](#Contributing) - [License](#License) @@ -267,6 +268,16 @@ Coney.publish("exchange", "message") Coney.publish("exchange", "routing_key", "message") ``` +## Publish message asynchronously + +```elixir +Coney.publish_async("exchange", "message") + +# or + +Coney.publish_async("exchange", "routing_key", "message") +``` + ## Checking connections You can use`Coney.status/0` if you need to get information about RabbitMQ connections: diff --git a/mix.exs b/mix.exs index e441c3b..5febf7c 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Coney.Mixfile do def project do [ app: :coney, - version: "3.1.2", + version: "3.1.3", elixir: ">= 1.12.0", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod,