Class: Cancellation
coresdk.child_workflow.Cancellation
Used in ChildWorkflowResult to report cancellation. Failure should be ChildWorkflowFailure with a CanceledFailure cause.
Properties
failure
• Optional failure: null | $Properties
Cancellation failure.
Methods
toJSON
▸ toJSON(): Object
Converts this Cancellation to JSON.
Returns
Object
JSON object
create
▸ create(properties?): Cancellation & $Shape
Creates a new Cancellation instance using the specified properties.
Parameters
| Name | Type | Description |
|---|---|---|
properties? | $Shape | Properties to set |
Returns
Cancellation instance
▸ create(properties?): Cancellation