Skip to content

Implement teardown contract for ESPFetch#1

Merged
zekageri merged 1 commit intomainfrom
feature/esp-fetch/teardown/teardown-contract-esp-fetch
Feb 24, 2026
Merged

Implement teardown contract for ESPFetch#1
zekageri merged 1 commit intomainfrom
feature/esp-fetch/teardown/teardown-contract-esp-fetch

Conversation

@zekageri
Copy link
Copy Markdown
Collaborator

Summary

  • replace the public runtime-state accessor with isInitialized() const (no compatibility alias)
  • harden teardown lifecycle by making deinit() idempotent/pre-init-safe and signaling in-flight workers to abort during teardown
  • keep destructor teardown delegated through deinit() and gate request enqueue on initialization state
  • expand lifecycle tests for pre-init deinit, repeated deinit, and init -> deinit -> init
  • document explicit teardown usage in README and example sketch

Testing

  • could not run local build/test tools in this environment (cmake and platformio are not installed)

@zekageri zekageri merged commit 20db192 into main Feb 24, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant