in src/lib/services/AsyncApi.ts [140:153]
public removeEntity(name: string) {
try {
if (!this.entities[name])
throw (`Unknown service entity - ${name}`)
const { pending } = this.entities[name];
/** check if there is something pending */
const pendingSubscription = pending.subscribe(pending => {
!pending && delete this.entities[name];
});
} catch (e) {
throw (e)
}
}