Skip to content

Commit

Permalink
Update description and order
Browse files Browse the repository at this point in the history
  • Loading branch information
poorna2152 committed Apr 10, 2024
1 parent 4f52a8a commit a297d90
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions examples/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -1474,6 +1467,13 @@
"verifyBuild": true,
"verifyOutput": true,
"isLearnByExample": true
},
{
"name": "Multiple receive",
"url": "multiple-receive",
"verifyBuild": true,
"verifyOutput": true,
"isLearnByExample": true
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion examples/multiple-receive/multiple_receive.bal
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function main() {
}

worker w3 returns map<int> {
// worker waits until both values are received.
// The worker waits until both values are received.
map<int> result = <- {w1, w2};
return result;
}
Expand Down
2 changes: 1 addition & 1 deletion examples/multiple-receive/multiple_receive.md
Original file line number Diff line number Diff line change
@@ -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 :::

Expand Down

0 comments on commit a297d90

Please sign in to comment.