Creates a PushStoredChannelTransfer — a channel that stores the last value.
Capabilities: Pushable, Pullable, Subscribable, Triggerable
Optional
— configuration (initialValue)
const channel = createPushStoredChannelTransfer<number>({ initialValue: 0 });channel.push(42);console.log(channel.pull()); // 42 Copy
const channel = createPushStoredChannelTransfer<number>({ initialValue: 0 });channel.push(42);console.log(channel.pull()); // 42
Creates a PushStoredChannelTransfer — a channel that stores the last value.
Capabilities: Pushable, Pullable, Subscribable, Triggerable