# How to stop after collecting all the expected messages

**URL:** <https://discourse.nodered.org/t/how-to-stop-after-collecting-all-the-expected-messages/77539>\
**Category:** General\
**Created:** [13 April 2023 16:37 UTC](https://discourse.nodered.org/t/how-to-stop-after-collecting-all-the-expected-messages/77539 "2023-04-13T16:37:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![mudwalker](https://avatars.discourse-cdn.com/v4/letter/m/47e85d/32.png) [@mudwalker](https://discourse.nodered.org/u/mudwalker)\
**Post date:** [13 April 2023 16:41 UTC](https://discourse.nodered.org/t/how-to-stop-after-collecting-all-the-expected-messages/77539/2 "2023-04-13T16:41:36Z")

</div>

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote `````)

````auto
``` 
   code goes here 
```

````

You can edit and correct your post by clicking the pencil ✏ icon.

See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

---

_[View the full topic](https://discourse.nodered.org/t/how-to-stop-after-collecting-all-the-expected-messages/77539)._
