-
Notifications
You must be signed in to change notification settings - Fork 19
Question: Is running the task from schedule OK? #5
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
Comments
I think that schedule function that does something significantly different from Why? Because schedule function is called primarily through wakers. Wakers in If you were to run task directly from schedule, then you will run into Now, going back to the question of running the same task recursively and |
I see, as this is a bad idea. But, as there are quite strong recommendations what to (not) do inside the schedule function, would it make sense to include it somewhere in the documentation? |
Hello
When browsing code around, I've came to wonder about one thing. What would go wrong, if I created a trivial „recursive“ executor by running the task directly inside the schedule closure? Eg:
So far, this has crossed my mind:
Or, are there any other problems or restrictions what the schedule closure can do?
The text was updated successfully, but these errors were encountered: