Skip to content

A scheduler that uses a linked queue to schedule tasks, and executes them using an non blocking design.

Notifications You must be signed in to change notification settings

ewized/EventLoopScheduler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EventLoopScheduler

A scheduler system that uses an event loop to schedule tasks, to be ran in a non blocking system. It uses native functions and lambdas to create tasks.

Usage

Examples can be found in examples folder.

EventLoop scheduler;
// Turn on the LED every 2 secs
scheduler.repeat([] () {
  digitalWrite(13, HIGH);
  // Turn off the LED off after 1 sec
  scheduler.execute([] () {
    digitalWrite(13, LOW);
  }, 1, SECONDS);
}, 2, SECONDS);

Must be added to the loop function

scheduler.process();

About

A scheduler that uses a linked queue to schedule tasks, and executes them using an non blocking design.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages