Skip to content

Latest commit

 

History

History
69 lines (39 loc) · 918 Bytes

common.Sink.md

File metadata and controls

69 lines (39 loc) · 918 Bytes

graphql-http / common / Sink

Interface: Sink<T>

common.Sink

A representation of any set of values over any amount of time.

Type parameters

Name Type
T unknown

Table of contents

Methods

Methods

complete

complete(): void

The sink has completed. This function "closes" the sink.

Returns

void


error

error(error): void

An error that has occurred. This function "closes" the sink.

Parameters

Name Type
error unknown

Returns

void


next

next(value): void

Next value arriving.

Parameters

Name Type
value T

Returns

void