You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code does not work. Is it expected to?
function c()
while (true)
println("In a task")
yield()
end
end
c1 = Task(c)
make_scheduled(c1);
yield()
This results in:
$ ./julia test.jl
no method c((),)
in method_missing at base.jl:60
at test.jl:12
in include at src/boot.jl:198
in process_options at client.jl:169
in _start at client.jl:207
However, the following code works. It correctly yields back into the task at last line, after make_scheduled.
function c()
while (true)
println("In a task")
yield()
end
end
c1 = Task(c)
consume(c1) #Hack to make make_scheduled work
make_scheduled(c1);
yield()
The text was updated successfully, but these errors were encountered:
The following code does not work. Is it expected to?
This results in:
However, the following code works. It correctly yields back into the task at last line, after make_scheduled.
The text was updated successfully, but these errors were encountered: