Should there be a `.submit` after my selection in ...
# ask-community
b
Should there be a
.submit
after my selection in the attached screenshot? This comes up in the docs here. I thought you needed to use
.submit()
in order to obtain a future. Just wanted to check if this is a typo.
m
We're still working on updating some of the documentation, you no longer need to call .submit() on tasks to get the resulting output of the task 😄
b
That was my understanding. But here, the
.result()
method is being used on the variable
future
on the following line, and I thought this was only possible if you used
.submit()
on a task because it would otherwise return the actual result, which probably doesn’t have a
.result()
method (e.g. a
str
or
pd.DataFrame
).
z
Yeah this example is out of date
🙌 1
b
Sounds good! I realize there are tons of small things to update, so I wanted to make sure this was caught.