From a297d90822028df2613bbdbee4b010e5c1828d01 Mon Sep 17 00:00:00 2001 From: poorna2152 Date: Wed, 10 Apr 2024 09:31:07 +0530 Subject: [PATCH] Update description and order --- examples/index.json | 14 +++++++------- examples/multiple-receive/multiple_receive.bal | 2 +- examples/multiple-receive/multiple_receive.md | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/examples/index.json b/examples/index.json index f5de10e828..92141c9185 100644 --- a/examples/index.json +++ b/examples/index.json @@ -1426,13 +1426,6 @@ "verifyOutput": true, "isLearnByExample": true }, - { - "name": "Multiple receive", - "url": "multiple-receive", - "verifyBuild": true, - "verifyOutput": true, - "isLearnByExample": true - }, { "name": "Named workers and futures", "url": "named-workers-and-futures", @@ -1474,6 +1467,13 @@ "verifyBuild": true, "verifyOutput": true, "isLearnByExample": true + }, + { + "name": "Multiple receive", + "url": "multiple-receive", + "verifyBuild": true, + "verifyOutput": true, + "isLearnByExample": true } ] }, diff --git a/examples/multiple-receive/multiple_receive.bal b/examples/multiple-receive/multiple_receive.bal index bbae1f460b..7d87c7ede2 100644 --- a/examples/multiple-receive/multiple_receive.bal +++ b/examples/multiple-receive/multiple_receive.bal @@ -12,7 +12,7 @@ public function main() { } worker w3 returns map { - // worker waits until both values are received. + // The worker waits until both values are received. map result = <- {w1, w2}; return result; } diff --git a/examples/multiple-receive/multiple_receive.md b/examples/multiple-receive/multiple_receive.md index 3f8dfa0cfe..f89d5be052 100644 --- a/examples/multiple-receive/multiple_receive.md +++ b/examples/multiple-receive/multiple_receive.md @@ -1,6 +1,6 @@ # Multiple receive -The multiple receive action allows receiving messages from multiple workers. +The multiple receive action enables receiving messages from multiple workers, waiting until a message is available from each worker to construct a record with received values. ::: code multiple_receive.bal :::