Skip to main content

createNextNotification

Types

function createNextNotification<GValue>(
value: GValue,
): INextNotification<GValue>

Definition

Creates a INextNotification.

Example

Emit a single 'next' Notification with value 1

const subscribe = single(createNextNotification(1));

subscribe((notification) => {
console.log(notification);
});

Output:

{ name: 'next', value: 1 }