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

Function toParts

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

Source from the content-addressed store, hash-verified

207 * @since 4.0.0
208 */
209export const toParts = (snowflake: Snowflake): Snowflake.Parts => ({
210 timestamp: timestamp(snowflake),
211 machineId: machineId(snowflake),
212 sequence: sequence(snowflake)
213})
214
215/**
216 * Creates a stateful snowflake generator using `Clock`.

Callers 1

dateTime.tsFile · 0.85

Calls 3

timestampFunction · 0.85
machineIdFunction · 0.85
sequenceFunction · 0.85

Tested by

no test coverage detected