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 {asyncGroup} from '@bitfiber/rx';
// Creates an asynchronous group
const group = asyncGroup<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);