
The Status class manages the status of anything that can have a 4-state status: idle, pending, success, error.
This is an example of how to use the Status class.
import { Status } from '@aracna/core';
const status = new Status();
status.idle('t1');
// will log true
console.log(status.isIdle('t1'));
status.pending('t2');
// will log true
console.log(status.isPending('t2'));
// will log true
console.log(status.areSomeIdle('t1', 't2'));
// will log true
console.log(status.areSomePending('t1', 't2'));
status.pending('t1');
// will log true
console.log(status.isPending('t1'));
// will log false
console.log(status.isEveryIdle('t1', 't2'));
// will log true
console.log(status.isEveryPending('t1', 't2'));