closeOne method Null safety

Future closeOne(
  1. String? correlationId,
  2. dynamic component
)

Closes specific component.

To be closed components must implement ICloseable 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 closed. Retrun Future that receives error or null no errors occured.

See IClosable