From 344366d4e3c127be26f669f346678b3331394619 Mon Sep 17 00:00:00 2001 From: Matti Airas Date: Sun, 1 Sep 2024 18:49:53 +0300 Subject: [PATCH] Provide compatibility aliases --- src/ReactESP.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/ReactESP.h b/src/ReactESP.h index 153b620..0ca52ee 100644 --- a/src/ReactESP.h +++ b/src/ReactESP.h @@ -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