unplug

Reset the SDK to its initial state.

This method releases managed resources and resets the SDK to its initial state.

Calling this method on an uninitialized SDK instance has no effect.

Signature

This method has the following signature:

croct.unplug(): Promise<void>;

The return is a Promise to wait until all resources are released.

Example

Here is a basic example of how to use this method:

import croct from '@croct/plug';
croct.unplug().then(() => {
console.log('SDK unplugged');
});