getDebouncedSubject(delay)
Obtains a new observable that yields values based on the debounced delay interval provided.
Returns
An observable object.
Parameters
Name | Type | Description | Required |
delay | integer | The debounced time interval at which the observable yields values. | ✅ |
Usage example
In this example, the API obtains an observable with a debounced interval of 200 milliseconds.
const sub = PCore.getAsynchronousUtils().getDebouncedSubject(200);
const subscription = sub.subscribe((argumentFromNext) => {//code});
subscription.next(valueToSubscriber);
subscription.unsubscribe();
Previous topic APIs in the AsynchronousUtils class Next topic APIs in the AttachmentUtils module