Skip to content
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

make_scheduled no longer exists? #3099

Closed
stevengj opened this issue May 14, 2013 · 4 comments
Closed

make_scheduled no longer exists? #3099

stevengj opened this issue May 14, 2013 · 4 comments
Labels
domain:docs This change adds or pertains to documentation kind:bug Indicates an unexpected problem or unintended behavior

Comments

@stevengj
Copy link
Member

The manual documents a make_scheduled function to "Register a task with the main event loop, so it will automatically run when possible."

However, this function seems to no longer exist.

julia> make_scheduled
ERROR: make_scheduled not defined

and grep make_scheduled julia/*/* turns up no code, only an entry in helpdb.jl?

Has this function been renamed? If so, can we please update the docs?

@stevengj
Copy link
Member Author

(As mentioned in the PyCall issue referenced above, this functionality seems like it is very useful for running GUI event loops during idle cycles.)

@stevengj
Copy link
Member Author

The make_scheduled function was removed in commit 5cb6ace by @JeffBezanson. Jeff, what was intended to replace this?

@JeffBezanson
Copy link
Sponsor Member

I feel it is not a good idea to call something constantly while idle. We have timers now, which are a bit better. We use this in Tk.jl as follows:

    timeout = Base.TimeoutAsyncWork(tcl_doevent)
    Base.start_timer(timeout,int64(50),int64(50))

to call tcl_doevent every 50ms. Of course that is still worse than proper event loop integration, but much easier.

@stevengj
Copy link
Member Author

Good to know; would be good to document some version of this (I don't see TimeoutAsyncWork in the manual), and to remove the obsolete docs for make_scheduled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:docs This change adds or pertains to documentation kind:bug Indicates an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants