Class: YieldableState

YieldableState

Methods

cancel()

Cancel the yielded TaskInstance.

Source:

getTaskInstance()

Return yielded TaskInstance. Useful for introspection on instance state.

Source:

next(value)

Cause the TaskInstance to return from its yield with an optional value, and continue executing.

Parameters:
Name Type Description
value
Source:

return(value)

Short-circuit TaskInstance execution and have it return with an optional value.

Parameters:
Name Type Description
value
Source:

throw(error)

Raise a given error within the given task instance and halt execution

Parameters:
Name Type Description
error
Source: