complete Method
Completes the group and all its items, signaling to all item subscribers that no more values will be emitted.
Once the group is completed, Its items will no longer emit any values, and any subsequent subscriptions will immediately receive an error.
In most cases, this method will be called automatically by a group or store managing the group, so you generally don’t need to call it manually unless you have a specific reason to do so
API
complete(): void;
Example
import {state, emitter, namedGroup} from '@bitfiber/rx';
const group = namedGroup({launch: emitter<void>(), data: state<number>(0)});
// Completes the group and all items within the group
group.complete();