clearOne static method
Clears state of specific component.
To be cleaned state components must implement ICleanable interface. If they don't the call to this method has no effect.
correlationId
(optional) transaction id to trace execution through call chain.component
the component that is to be cleaned. Return Future that returns error or null no errors occured.
See ICleanable
Implementation
static Future clearOne(String? correlationId, component) async {
if (component is ICleanable) await component.clear(correlationId);
}