We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3720ac0 commit 3be70a4Copy full SHA for 3be70a4
cores/esp8266/coredecls.h
@@ -51,6 +51,10 @@ inline void esp_suspend(T&& blocked) {
51
} while (blocked());
52
}
53
54
+// Try to delay for timeout_ms relative to start_ms. Returns false if the delayed task
55
+// is asynchronously resumed before the timeout is reached.
56
+// Also returns false if intvl_ms have expired during the active call.
57
+// Otherwise return true to indicate the timeout_ms have completely expired.
58
bool try_esp_delay(const uint32_t start_ms, const uint32_t timeout_ms, const uint32_t intvl_ms);
59
60
// This overload of esp_delay() delays for a duration of at most timeout_ms milliseconds.
0 commit comments