transferum
    Preparing search index...

    Function createPushStoredChannelTransfer

    • Creates a PushStoredChannelTransfer — a channel that stores the last value.

      Capabilities: Pushable, Pullable, Subscribable, Triggerable

      Type Parameters

      • T

      Parameters

      Returns ExplicitTransfer<T, T>

      const channel = createPushStoredChannelTransfer<number>({ initialValue: 0 });
      channel.push(42);
      console.log(channel.pull()); // 42