Skip to main content Link Search Menu Expand Document (external link)

NATSQueuedIterator.ts overview

Since v0.1.0


Exports Grouped by Category


models

NATSQueuedIterator (interface)

Represents a NATS QueuedIterator wrapper with Effect methods

Signature

export interface NATSQueuedIterator<T, E> {
  readonly [TypeId]: TypeId
  readonly stop: (err?: Error) => Effect.Effect<void>
  readonly getProcessed: Effect.Effect<number>
  readonly getPending: Effect.Effect<number>
  readonly getReceived: Effect.Effect<number>
  readonly stream: Stream.Stream<T, E, never>

  /** @internal */
  readonly iterator: NATS.QueuedIterator<T>
}

Source

Since v0.1.0

type ids

TypeId

Signature

declare const TypeId: unique symbol

Source

Since v0.1.0

TypeId (type alias)

Signature

type TypeId = typeof TypeId

Source

Since v0.1.0