Approved content

The content below is provided by a partner.

microsoft/arcade-timers 1.1.0 GitHub

Timers Build status badge

Usage

This extension adds helper functions for debouncing, throttling, delaying and running code in the background.

“After X do” / aka setTimeout

9302a9b1d40cb3c3519e3ee9b373cff46a8ec6f1

“Separately do” / aka run in background thread

2279b1075112eae10b5861bbee0e26bf31712d30

“after Y settled for X do” / aka debounce

d16b80463f90b10561e16ebd5f9931d1d6f4d84b

“for Y at most once every X do” / aka throttle

8c69c7612ff407785725cfa3935b2013381e256e

Use this extension

This repository can be added as an extension in MakeCode.

Edit this extension

To edit this repository in MakeCode.

Blocks preview

This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh.

A rendered view of the blocks

Supported targets

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Timers=github:microsoft/arcade-timers#v1.1.0