Assert the worker's output is a success result, and return its value. With a contract, the value is validated against the success shape (a wrong/missing field fails the assertion). A malformed or error result throws.
value
contract
Optional
Assert the worker's output is a success result, and return its
value. With acontract, the value is validated against the success shape (a wrong/missing field fails the assertion). A malformed or error result throws.