group Function
Creates a new Group instance that collects all subsequently created group
items such as emitters, states, and groups until group.markAsReady()
is called
@returns Group
API
function group(): Group;
Example
import {state, emitter, group, asyncGroup} from '@bitfiber/rx';
// Defines a group that will collect all subsequently created emitters, states, and groups
const myGroup = group();
// Add group items here
const someState = state<string>('');
const someEmitter = emitter<number>();
const req = asyncGroup<string, number, number>();
// Marks the group as ready, indicating that all group items have been defined
myGroup.markAsReady();
// Initializes the group and all items within the group
myGroup.initialize();
// Completes the group and all items within the group
myGroup.complete();