MCPcopy Index your code
hub / github.com/Effect-TS/effect / removeSupervisor

Function removeSupervisor

packages/effect/src/internal/supervisor/patch.ts:127–140  ·  view source on GitHub ↗
(
  self: Supervisor.Supervisor<any>,
  that: Supervisor.Supervisor<any>
)

Source from the content-addressed store, hash-verified

125
126/** @internal */
127const removeSupervisor = (
128 self: Supervisor.Supervisor<any>,
129 that: Supervisor.Supervisor<any>
130): Supervisor.Supervisor<any> => {
131 if (Equal.equals(self, that)) {
132 return supervisor.none
133 } else {
134 if (supervisor.isZip(self)) {
135 return removeSupervisor(self.left, that).zip(removeSupervisor(self.right, that))
136 } else {
137 return self
138 }
139 }
140}
141
142/** @internal */
143const toSet = (self: Supervisor.Supervisor<any>): HashSet.HashSet<Supervisor.Supervisor<any>> => {

Callers 1

patchLoopFunction · 0.85

Calls 1

zipMethod · 0.65

Tested by

no test coverage detected