# Are the blocks single threaded? If I run a loop, everything else will wait until that loop ends?

**URL:** https://community.thunkable.com/t/are-the-blocks-single-threaded-if-i-run-a-loop-everything-else-will-wait-until-that-loop-ends/134167
**Category:** Questions about Thunkable X
**Created:** [July 6, 2019, 6:05pm UTC](https://community.thunkable.com/t/are-the-blocks-single-threaded-if-i-run-a-loop-everything-else-will-wait-until-that-loop-ends/134167 "2019-07-06T18:05:30Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![vba](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@vba](https://community.thunkable.com/u/vba)
#### Post date: [July 6, 2019, 6:05pm UTC](https://community.thunkable.com/t/are-the-blocks-single-threaded-if-i-run-a-loop-everything-else-will-wait-until-that-loop-ends/134167/1 "2019-07-06T18:05:30Z")

</div>

Are the blocks single threaded? If I run a loop, everything else will wait until that loop ends?

Thank you in advance!

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [July 6, 2019, 7:08pm UTC](https://community.thunkable.com/t/are-the-blocks-single-threaded-if-i-run-a-loop-everything-else-will-wait-until-that-loop-ends/134167/2 "2019-07-06T19:08:19Z")

</div>

Yes, try to start a different process to trigger a timer to simulate multithreading.

---

<div class="post-metadata">

### Author: ![vba](https://avatars.discourse-cdn.com/v4/letter/v/c68b51/32.png) [@vba](https://community.thunkable.com/u/vba)
#### Post date: [July 6, 2019, 7:46pm UTC](https://community.thunkable.com/t/are-the-blocks-single-threaded-if-i-run-a-loop-everything-else-will-wait-until-that-loop-ends/134167/3 "2019-07-06T19:46:33Z")

</div>

So while one timer is counting down, other stuff happens, and when the timer expires the action gets inserted in the queue, like a JS async call. Is that correct?

Is that timer “Wait X seconds”? Just having that action is enough to start a different process?

---

<div class="post-metadata">

### Author: ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)
#### Post date: [July 7, 2019, 7:08am UTC](https://community.thunkable.com/t/are-the-blocks-single-threaded-if-i-run-a-loop-everything-else-will-wait-until-that-loop-ends/134167/4 "2019-07-07T07:08:00Z")

</div>

“like a JS async call”  
Yes

Use the Timer component with a single start. I would not recommend using a delay block “Wait” at all.

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 12:12pm UTC](https://community.thunkable.com/t/are-the-blocks-single-threaded-if-i-run-a-loop-everything-else-will-wait-until-that-loop-ends/134167/5 "2024-11-08T12:12:19Z")

</div>


