Skip to content
tRPC

Partners

Function: share()

On this page

share<TValue, TError>(_opts?): MonoTypeOperatorFunction<TValue, TError>

Defined in: packages/server/src/observable/operators.ts:37

Shares one subscription to the source between all subscribers. It starts with the first subscriber and ends when the last unsubscribes.

Type Parameters

Type Parameter
TValue
TError

Parameters

ParameterType
_opts?ShareConfig

Returns

MonoTypeOperatorFunction<TValue, TError>