The token to add to the list of tokens.
It deletes all tokens that match the given identity
IdentityOptions
It returns a list of tokens that match the given identity
IdentityOptions
An array of tokens that match the identity.
If every token in the tokens array has a status of Completed, then return true
A boolean value.
The function checks if the status is equal to "Failed".
The isFailed() function is returning a boolean value
It returns true if some token in the tokens array has a status of Terminated
A boolean value that is true if all the tokens have a status of Terminated.
It returns true if every token in the tokens array has a status of Paused
A boolean value.
If the status property of the current instance is equal to the Ready constant, return true, otherwise return false.
A boolean value.
It returns true if every token in the tokens array has a status of Terminated
A boolean value that is true if all the tokens have a status of Terminated.
Return the next token's state if it's ready, otherwise return undefined.
The state of the first token that has a status of Ready.
It returns an object with the data, status, and tokens.
data: true, value: true
An object with the data, status, and tokens.
StaticbuildIt returns a new instance of the Context class, with the data parameter passed in as the data property of the new instance
Optionaldata: Partial<ContextInterface<D>>The data to be passed to the context.
A new instance of the Context class.
StaticdeserializeIt takes a serialized context and returns a new context with the tokens deserialized
Context
A new Context object with the data passed in and the tokens mapped to Token objects.
It adds a token to the tokens array