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 '0e6cb4c2ac4bf5da89b40f04f4e1557f' using 'example'
task_wait(id)
#> [1] TRUE
task_result(id)
#> [1] 0.1854723
# Tasks that error return error values as results
id <- task_create_expr(readRDS("nosuchfile.rds"))
#> ✔ Submitted task 'd4d8fc8711b0635c1e5459f2671d3706' using 'example'
task_wait(id)
#> [1] FALSE
task_result(id)
#> <simpleError in gzfile(file, "rb"): cannot open the connection>
cleanup()
#> ℹ Cleaning up example
