-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
… #7832
… #7832
Conversation
In ESPEasy the |
Ah OK, I got the impression it was the other way around. |
Similar here, but there's only a single place that optimistic yield is mentioned - debugging function that sometimes sends data to the network, and the only reason is that it avoids panic. No specific preference for removal / keeping it, but perhaps methods should just change the prefix from |
After needing some time to wrap my head around the existing namings; finding out which ones to shim, IIRC also PRing additional weak refs that got merged in the recent past; and building at least the CoopTask stackful coroutine multitasking lib on top of that work, plus devising the new |
Ah, true, we do lose strong guarantee that stock yield() actually does something, which might be surprising... Afaik, esp32 simply noops optimistic_yield and yield is true thread yield |
Should the internals always stick to esp_... then? There's still yield() in some places. Note that my quote is about esp32 :: |
I have a feeling that instead of essentially dropping all the uses of proper There's a few places using 1000µs, which would probably be fine with 10000µs a well, and then there is Rationale: low intervals for Why is 1000µs considered a better default interval in this PR instead of the previous 10000µs, used in most places in the existing code? |
A general question, how would one go about distinguishing versions of the Arduino ESP8266 core pre and post this patch? I would like CoopTask to auto-detect this as much as possible, version conflicts that don't compile are a little hard on the intended user-base of the library. |
As I believe the inspiration for this PR came in part from #7148, which also was requested to be kept "online" be @d-a-v after initial reserverations from @devyte, I have now updated PR #7148. I believe that #7148
Not in here, and IMHO better suited to a separate follow-up PR:
Also, I don't know that
is not too easily inviting new invalid calls to |
@d-a-v I'm truly sorry that you get upset, it's not my intention and I've given my writing a few iterations to express things calmly, and based on the facts. I would hope that you can see it this way: let's get the best of everyone's ideas together. Having this PR #7148 posted ahead of yours, seems like a reasonable strategy to reference for reading, reviewing, merging and extracting. You said,
Well there's nothing wrong with that, unless putting some else down and doing things exclusively for the purpose of showing off - which you can't really believe to be my intention. Mind you, I'm maintaining CoopTask and as such I hold some stake in stable APIs, isn't that sufficient reason to review and comment and propose changes to PRs that affect this? Perhaps you felt my comment was trying to outline differences to your PR, no, that would be a misunderstanding, I was listing what it does, not claiming that this #7832 was doing worse overall. Sorry if that's what you thought I meant by it. Where I said
it doesn't mean that 1000µs is always wrong! I only find that there are other cases where 10000µs is better suited, so while your PR would have used 1000µs everywhere regardless of the argument to I trying not to think badly of this remark you made:
I feel #7148 is changing enough for one PR now, please keep your work available such that those parts going beyond the former can be implemented by follow-ups. |
No description provided.