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
Method to get the name of the Callback registered in the Task #169
Comments
I never needed this functionality and it was not asked for until now, hence it does not exist in the current version. |
I'm using Task as a finite state machine to manage the messages on the 20x04 Display. Thanks. |
I got this idea (to use the Task to visualize the messages on the 20x04 Display) after reading this example from the documentation. |
The callback is a piece of code, not an object, so it can not really hold a "name". I can have Tasks return a pointer to the current callbacks, and you would need to compare to known pointers to figure out which one is assigned. |
Hi, I believe so. What would be the proper approach to purchasing the 'getCallback' method with the compared function pointer? |
Yes, something like that I guess. |
I'm a beginner in C++, but maybe this post can help: |
Hello @arkhipenko
First of all, THANK YOU SO MUCH for this fantastic library!!!
A doubt. Is there a method to get the current callback name of the task?
In this case, when we use Task as a finite state machine, it would be interesting to know which Callback is registered in Task.
Ex:
The text was updated successfully, but these errors were encountered: