Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132922 views
License: OTHER
1
x = c.submit(inc, 1)
2
y = c.submit(dec, 2)
3
total = c.submit(add, x, y)
4
5
print(total) # This is still a future
6
c.gather(total) # This blocks until the computation has finished
7
8