# Functions sync or async?

**URL:** <https://community.thunkable.com/t/functions-sync-or-async/4107655>\
**Category:** Questions about Thunkable X\
**Created:** [September 22, 2025, 8:32am UTC](https://community.thunkable.com/t/functions-sync-or-async/4107655 "2025-09-22T08:32:32Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![maurizio.polverini89](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maurizio.polverini89/32/145191_2.png) [@maurizio.polverini89](https://community.thunkable.com/u/maurizio.polverini89)\
**Post date:** [September 22, 2025, 8:32am UTC](https://community.thunkable.com/t/functions-sync-or-async/4107655/1 "2025-09-22T08:32:32Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/2/1275e4c25613ac0bdad2ff16201352c01ebfe1f8.png)

Hello everyone, hope you are good.

I have a quick question: could you please confirm whether the method _“Cancella Ultima Row..”_ is executed asynchronously with respect to the others?  
In other words, will _“Set Label 2 Text”_ wait for the above function to finish before running, or will it execute at the same time asynchronously?

Thanks !

---

<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:** [September 22, 2025, 10:33am UTC](https://community.thunkable.com/t/functions-sync-or-async/4107655/2 "2025-09-22T10:33:07Z")

</div>

Hi @maurizio.polverini89  
The blocks are **asynchronous** , which means that it doesn’t wait until their action is finished before starting the next action.  
​  
By adding a [wait block](https://docs.thunkable.com/snap-to-place/control#wait), these blocks act **synchronously** (wait until the function is finished executing before letting other blocks execute).

When the wait block is used, it makes these blocks act **synchronously,** even if the waiting time is set as 0.1 seconds. This is how it is designed to work in the background by the engineers.

---

<div class="post-metadata">

**Author:** ![maurizio.polverini89](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maurizio.polverini89/32/145191_2.png) [@maurizio.polverini89](https://community.thunkable.com/u/maurizio.polverini89)\
**Post date:** [September 22, 2025, 3:26pm UTC](https://community.thunkable.com/t/functions-sync-or-async/4107655/3 "2025-09-22T15:26:29Z")

</div>

Hello Ioannis,

Thank you for your kind answer, may you confirm that the wait block acts like you said.

The reason behind my question is the following: even after adding the wait block, the method still runs asynchronously, and the “Set Label 2 Text” action executes without waiting for the “Cancella Ultima Row” method to complete.

It’s hard to say whether this is a minor issue or something specific on my side, but I can confirm that “Set Label 2 Text” does not wait until “Cancella Ultima Row” finishes — and that’s why I had to increase the wait block from 1 to 3 seconds.

---

<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:** [September 22, 2025, 4:23pm UTC](https://community.thunkable.com/t/functions-sync-or-async/4107655/4 "2025-09-22T16:23:23Z")

</div>

Hi @maurizio.polverini89  
Thank you for sharing more information.  
This is probably happening because the function doesn’t have any return block so for the blocks on the screenshot, the function block is executed.

So, a solution is to add a return value or to move the blocks from the function above the wait block.

---

<div class="post-metadata">

**Author:** ![maurizio.polverini89](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/maurizio.polverini89/32/145191_2.png) [@maurizio.polverini89](https://community.thunkable.com/u/maurizio.polverini89)\
**Post date:** [September 23, 2025, 5:57pm UTC](https://community.thunkable.com/t/functions-sync-or-async/4107655/5 "2025-09-23T17:57:14Z")

</div>

I’ll try that, thank you very much

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [December 22, 2025, 5:57pm UTC](https://community.thunkable.com/t/functions-sync-or-async/4107655/6 "2025-12-22T17:57:17Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
