Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ machineId
Function
machineId
packages/cluster/src/Snowflake.ts:120–121 ·
view source on GitHub ↗
(snowflake: Snowflake)
Source
from the content-addressed store, hash-verified
118
* @category Parts
119
*/
120
export
const
machineId = (snowflake: Snowflake): MachineId =>
121
Number((snowflake >> constBigInt12) % constBigInt1024) as MachineId
122
123
/**
124
* @since 1.0.0
Callers
1
toParts
Function · 0.85
Calls
1
Number
Interface · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…