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

Function toParts

packages/cluster/src/Snowflake.ts:133–137  ·  view source on GitHub ↗
(snowflake: Snowflake)

Source from the content-addressed store, hash-verified

131 * @category Parts
132 */
133export const toParts = (snowflake: Snowflake): Snowflake.Parts => ({
134 timestamp: timestamp(snowflake),
135 machineId: machineId(snowflake),
136 sequence: sequence(snowflake)
137})
138
139/**
140 * @since 1.0.0

Callers 1

dateTime.tsFile · 0.85

Calls 3

timestampFunction · 0.85
machineIdFunction · 0.85
sequenceFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…