Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / withEmissionStamp

Function: withEmissionStamp()

withEmissionStamp<T>(stamp, fn): T

Defined in: projects/libraries/streamix/src/lib/abstractions/emission.ts:54

Run a function within a specific emission stamp context. Temporarily sets the emission stamp for the duration of the function.

Type Parameters

T

T

Parameters

stamp

number

The emission stamp to set.

fn

() => T

The function to execute.

Returns

T

The result of the function.

Released under the MIT License.