MCPcopy Create free account
hub / github.com/Effect-TS/effect / sequence

Function sequence

packages/effect/src/unstable/cluster/Snowflake.ts:201–201  ·  view source on GitHub ↗
(snowflake: Snowflake)

Source from the content-addressed store, hash-verified

199 * @since 4.0.0
200 */
201export const sequence = (snowflake: Snowflake): number => Number(snowflake % constBigInt4096)
202
203/**
204 * Decomposes a snowflake id into its timestamp, machine id, and sequence parts.

Callers 1

toPartsFunction · 0.85

Calls 1

NumberInterface · 0.50

Tested by

no test coverage detected