# Is there a wait until block?

**URL:** <https://community.thunkable.com/t/is-there-a-wait-until-block/1484665>\
**Category:** Questions about Thunkable X\
**Created:** [September 3, 2021, 4:42am UTC](https://community.thunkable.com/t/is-there-a-wait-until-block/1484665 "2021-09-03T04:42:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)\
**Post date:** [September 3, 2021, 4:42am UTC](https://community.thunkable.com/t/is-there-a-wait-until-block/1484665/1 "2021-09-03T04:42:15Z")

</div>

Does a block such as this exist, or can another method be employed for the same result?  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/2/c205e576c27261c5ccf1d162c4127837ff99c58d.png)

---

<div class="post-metadata">

**Author:** ![vishruth-ram](https://avatars.discourse-cdn.com/v4/letter/v/82dd89/32.png) [@vishruth-ram](https://community.thunkable.com/u/vishruth-ram)\
**Post date:** [September 3, 2021, 5:47am UTC](https://community.thunkable.com/t/is-there-a-wait-until-block/1484665/2 "2021-09-03T05:47:44Z")

</div>

no, there is a ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/7/07e0da4a502e67a0f3cb3e56a374ccc891cd737b.png)block

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 3, 2021, 6:41am UTC](https://community.thunkable.com/t/is-there-a-wait-until-block/1484665/3 "2021-09-03T06:41:42Z")

</div>

Try this

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/6/06e4b069848a691b43f6d135378f76efe10f103d.png)

---

<div class="post-metadata">

**Author:** ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)\
**Post date:** [September 3, 2021, 1:05pm UTC](https://community.thunkable.com/t/is-there-a-wait-until-block/1484665/4 "2021-09-03T13:05:31Z")

</div>

Ok for example if I’m waiting for an API to finish loading, how would I implement this to work that way?

The simplest would be if the block I showed existed I could just say ‘wait until’ loading icon visible = false

---

<div class="post-metadata">

**Author:** ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)\
**Post date:** [September 3, 2021, 1:06pm UTC](https://community.thunkable.com/t/is-there-a-wait-until-block/1484665/5 "2021-09-03T13:06:55Z")

</div>

I suppose I could have a timer constantly running and checking for the requirements. It’s just additional blocks to achieve it.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 3, 2021, 1:30pm UTC](https://community.thunkable.com/t/is-there-a-wait-until-block/1484665/6 "2021-09-03T13:30:16Z")

</div>

I would do something like this  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/4/149ba00245fcd2f5b8e5dbb1c442ce4267087dc8.png)

Although in practice I will also exit the loop after some seconds even if the control flag is still false.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 3, 2021, 1:35pm UTC](https://community.thunkable.com/t/is-there-a-wait-until-block/1484665/7 "2021-09-03T13:35:30Z")

</div>

Practically I will wait for the API for a certain amount of time and then had to break out and notify the user that something did not go as expected

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/6/e6f68162b699752e4dc5efb1d33a9777903d04c5.png)

---

<div class="post-metadata">

**Author:** ![overshield](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@overshield](https://community.thunkable.com/u/overshield)\
**Post date:** [September 3, 2021, 2:28pm UTC](https://community.thunkable.com/t/is-there-a-wait-until-block/1484665/8 "2021-09-03T14:28:03Z")

</div>

This definitely works, it’s similar to putting a timer component in there and checking, yours is based on the 0.125 seconds block. I like it.

---

<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, 1:17pm UTC](https://community.thunkable.com/t/is-there-a-wait-until-block/1484665/9 "2024-11-08T13:17:00Z")

</div>


