Cooperative Multitasking


Cooperative Multitasking lets multiple functions run at (nearly) the same time or independently from each other.
The CooperativeMultitasking class maintains a list of tasks to run. Use now(...) to put a task to the beginning of the list. Use after(...) to delay a task. Use ifThen(...) to make a task wait for a condition to become true. See the examples for details and other possibilities for controlling tasks. Requires no other dependencies.

Author: Andreas Motzek

Maintainer: Andreas Motzek

Read the documentation

Go to repository


This library is compatible with the samd architecture so you should be able to use it on the following Arduino boards:


To use this library, open the Library Manager in the Arduino IDE and install it from there.