Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
*/
201
export
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
toParts
Function · 0.85
Calls
1
Number
Interface · 0.50
Tested by
no test coverage detected