Get the task result. This might be an error if the task has failed.
Examples
cleanup <- hipercow_example_helper()
#> ℹ This example uses a special helper
# Typical usage
id <- task_create_expr(runif(1))
#> ✔ Submitted task '5ebf440bb2bd54c7e99e3d3d01abc24a' using 'example'
task_wait(id)
#> [1] TRUE
task_result(id)
#> [1] 0.01691789
# Tasks that error return error values as results
id <- task_create_expr(readRDS("nosuchfile.rds"))
#> ✔ Submitted task '65a49c492b51cd2c540c8a7b4964f638' using 'example'
task_wait(id)
#> [1] FALSE
task_result(id)
#> <simpleError in gzfile(file, "rb"): cannot open the connection>
cleanup()
#> ℹ Cleaning up example
