-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
@schedule is deprecated, the code is no longer valid in 1.0 #28800
Conversation
|
||
julia> for i in 1:4 # start 4 tasks to process requests in parallel | ||
@schedule do_work() | ||
@async do_work() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
round(exec_time,2)
a few lines below doesn't work on 1.0 should be round(exec_time; digits=2)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, the n = n - 1
needs a global
in front of it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have pushed a new commit with those changes. Thanks for the comments, nice catch!
I am following the documentation to learn Julia, and I found a macro,
@schedule
that is deprecated in Julia 1.0, according to #27164This pull request simply replaces
@schedule
by@async
in the Parallel Computing section of the manual.