Skip to Content

launch Property Readonly

An emitter that triggers the start of an asynchronous action. This emitter takes a payload of type L, which contains the necessary data to initiate the action

API

readonly launch: Emitter<L>;

Example

import {asyncSignalGroup} from '@bitfiber/ng/rx'; // Creates an asynchronous group const group = asyncSignalGroup<number, string[], Error>(({launch}) => { // Sets an effect to be triggered on new launch emissions launch.tap(v => console.log(v)); }); // Emits a new value to its own subscribers group.launch.emit(1);
Last updated on