externalScheduleWork
experimental
Hierarchy
- Ability
- ScheduleWork
Implements
Index
Constructors
Methods
Constructors
externalconstructor
Parameters
Returns ScheduleWork
Methods
externalabilityType
Returns the most abstract type of this Ability instance, specifically the first class in the inheritance hierarchy that directly extends the
Ability
class.import { Ability } from '@serenity-js/core';
class MyAbility extends Ability {}
class MySpecialisedAbility extends MyAbility {}
new MyAbility().abilityType(); // returns MyAbility
new MySpecialisedAbility().abilityType(); // returns MyAbilityReturns AbilityType<Ability>
externalrepeatUntil
Type parameters
- Result
Parameters
externalcallback: DelayedCallback<Result>
externaloptionallimits: RepeatUntilLimits<Result>
Returns Promise<Result>
externalwaitFor
Parameters
externaldelay: Duration
Returns Promise<void>
externaldiscard
Discards the resources associated with this ability.
Returns void
externaltoJSON
Returns a JSON representation of the ability and its current state, if available. The purpose of this method is to enable reporting the state of the ability in a human-readable format, rather than to serialise and deserialise the ability itself.
Returns SerialisedAbility
An
Ability
that enables anActor
to schedule a callback function to be executed with a delay, or until some condition is met.Used internally by the interaction to
Wait
.