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

Function toSet

packages/effect/src/internal/fiberId.ts:248–260  ·  view source on GitHub ↗
(self: FiberId.FiberId)

Source from the content-addressed store, hash-verified

246
247/** @internal */
248export const toSet = (self: FiberId.FiberId): HashSet.HashSet<FiberId.Runtime> => {
249 switch (self._tag) {
250 case OP_NONE: {
251 return HashSet.empty()
252 }
253 case OP_RUNTIME: {
254 return HashSet.make(self)
255 }
256 case OP_COMPOSITE: {
257 return pipe(toSet(self.left), HashSet.union(toSet(self.right)))
258 }
259 }
260}
261
262/** @internal */
263export const unsafeMake = (): FiberId.Runtime => {

Callers 2

isNoneFunction · 0.70
toOptionFunction · 0.70

Calls 2

pipeFunction · 0.70
makeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…