From 6072fd8bf57d181b6928eeb2a36943f747b9fefd Mon Sep 17 00:00:00 2001 From: "Tj (bougyman) Vanderpoel" Date: Mon, 3 Jun 2024 10:15:22 -0500 Subject: [PATCH] feat(lock): Release distributed lock component --- Readme.adoc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Readme.adoc b/Readme.adoc index 162b7a0..827afde 100644 --- a/Readme.adoc +++ b/Readme.adoc @@ -137,6 +137,14 @@ value = Rubyists::Dapr::Client::Configuration.get('TEST_KEY') Implementation of {distributed-lock-block} +[source,ruby] +---- +require 'dapr/client/lock' +lock = Rubyists::Dapr::Client::Lock.acquire('TEST_LOCK') +... do_important_stuff ... +lock.unlock! +---- + === Workflow Implementation of {workflow-block}