Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / src/public-api / CorrelateOptions

Interface: CorrelateOptions<Q, A, K> ​

Defined in: projects/libraries/streamix/src/lib/operators/correlate.ts:8

Configuration for correlate.

Type Parameters ​

Q ​

Q

A ​

A

K ​

K

Properties ​

timeout? ​

optional timeout?: number

Defined in: projects/libraries/streamix/src/lib/operators/correlate.ts:19

How long, in milliseconds, an outstanding request may wait for its response. Expiry fails the output with Error('Correlation timed out'). Must be a nonnegative finite number; validated when the operator is created.

Methods ​

requestKey() ​

requestKey(request): K

Defined in: projects/libraries/streamix/src/lib/operators/correlate.ts:10

Extracts the correlation key from an outgoing request.

Parameters ​

request ​

Q

Returns ​

K


responseKey() ​

responseKey(response): K

Defined in: projects/libraries/streamix/src/lib/operators/correlate.ts:12

Extracts the correlation key from an incoming response.

Parameters ​

response ​

A

Returns ​

K

Released under the MIT License.