Skip to content

Commit

Permalink
Provide compatibility aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
mairas committed Sep 1, 2024
1 parent 3044f75 commit 344366d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/ReactESP.h
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,18 @@ class EventLoop {
void add(Event* re);
};

// Provide compatibility aliases for the old naming scheme

using ReactESP = EventLoop;
using TimedReaction = TimedEvent;
using UntimedReaction = UntimedEvent;
using DelayReaction = DelayEvent;
using RepeatReaction = RepeatEvent;
using ISRReaction = ISREvent;
using StreamReaction = StreamEvent;
using TickReaction = TickEvent;


} // namespace reactesp

#endif

0 comments on commit 344366d

Please sign in to comment.