Wait / delay in while-do loop

I am using while-Do loop. I want to add a delay of 10 seconds inside the loop. i.e while condition is true, the loop should check again after 10 seconds.

Use Clock component.

1 Like

how to use them. show by blocks?

First ,Try yourself :thumbsup:

2 Likes

use clock sensor component and use the timerEnabled property and timer event
just a hint

i have already tried. but app stops responding.

Show us yours blocks :thumbsup:

2 Likes

also see this extension

2 Likes

I don’t recommend this extension because it freezes the app in delay time while Clock component doesn’t.

It’s not asynchronous.

1 Like