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

Subscriber overview

Added in v0.3.0


Table of contents


models

Subscriber (interface)

Signature

export interface Subscriber<M> {
  readonly [TypeId]: TypeId
  readonly subscribe: <E, R>(
    handler: Effect.Effect<void, E, R | M>
  ) => Effect.Effect<void, SubscriberError.SubscriberError, Exclude<R, M>>
  readonly healthCheck: Effect.Effect<void, SubscriberError.SubscriberError, never>
}

Added in v0.3.0

type ids

TypeId

Signature

export declare const TypeId: typeof TypeId

Added in v0.3.0

TypeId (type alias)

Signature

export type TypeId = typeof TypeId

Added in v0.3.0