DelayHandler - Extension - May be similar, but definitely different!

There may be a lot of extensions and approaches are available to provide delay in execution of desired procedures. The DelayHandler extension may look similar to others’, but it is definitely different.

:point_right: The blocks of the extension ‘DelayHandler’ are…

component_method (1)

component_method (2)

component_method (3)


:point_right: We can use the functions at any stage of app coding like this…

For delay in milli seconds,

blocks (1)

For delay in seconds,

blocks (2)

For delay in minutes,

blocks (3)

:point_right: After execution of every instance of any delay function, the method AfterDelay will be invoked and the procedures append to that delay instance processed…

blocks (with_event)

:star:Try and feel the definite difference with the other extensions. That’s it.

Download the resources here:

:point_right: Use this extension and feel free to suggest the improvements.

Thank you
Hema Srinivas

:heart_eyes: P.S.

This extension is very useful in making apps for IoT with Arduino, ESP, Raspberry PI and many other embedded hardware.

Try and feel the difference.


Nice job. But I didn’t understand the use of this extension. Is it similar to clock component’s timer?


Just try the extension, then you can feel the difference.

It provides different delays to execute different procedures, this helps in parallel processing.

If you have touch in programming embedded systems, then you can feel the essence of this extension.


The same question:

Is there a difference in the accuracy with which this extension works compared to the Clock component?

Because the clock is very imprecise, see for example here:


Yes it is precise. Try it with any code.

1 Like

Great extension!!! :star_struck:

1 Like

I did a first little test (a 5 min countdown):

The accuracy is actually better than with the clock. In a 5 minute countdown, the extension only loses a little more than 1 second compared to a chronometer.

Of course, that’s not the purpose of your extension, it was just a small test to see what the extension can be used for.

If the .AfterDelay event is not triggered regularly (excessively often), the delay seems to be quite precise.


Wow, thank you so much for making such a useful extension. I was looking for something like this. :heart:

Thank you very much for your analysis.

Please say your conclusion. I am eager to hear that.


As I said before, for the purposes you presented, it seems to work well and give better / more accurate results than the clock component.

Note: The extension doesn’t work in the background (idle / sleep mode or after pressing the Home button).

1 Like

Thank you.

I try to make this extension run in background.


Very nice extension. I am searching for this type of delay program for a long time. Keep koding!

1 Like

You are welcome.

1 Like

So is it something like wait() function? See Taifun’s reply here:

Not like that.

You can check it with other extensions, compare and then conclude.

1 Like

An helpfull extention :heart_eyes:

1 Like

This is such a helpful extension, thanks very much; it will help to clean up my code a lot!


Is this Delay Synchronous or Asynchronous?

wait() is a synchronous method if I am not wrong.

1 Like

A great extension but can you add a block by which we can call any delay by its name…

1 Like