Options
All
  • Public
  • Public/Protected
  • All
Menu

One value being processed by a consumer. On receipt of a bite, every consumer must either call next or unsubscribe, to allow the further items to arrive (to other subscribers). Therefore, a consumable always flows at the pace of he slowest consumer.

When piping a consumable, it's essential to call done() for every item which does not make it to the output, for example due to a filter or reduce.

see

Consumable

Type parameters

  • T

Hierarchy

  • Bite

Index

Properties

Methods

Properties

value

value: T

Methods

next

  • next(): true
  • Call to release the next value for consumption.

    Returns true

    true for expressions like next() && 'hello'

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Static property

Generated using TypeDoc. Delivered by Vercel. @m-ld/m-ld - v0.7.1-4 Source code licensed MIT. Privacy policy