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

Function identity

packages/effect/src/Channel.ts:1290–1291  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1288 * @since 2.0.0
1289 */
1290export const identity = <Elem, Err, Done>(): Channel<Elem, Err, Done, Elem, Err, Done> =>
1291 fromTransform((upstream, _scope) => Effect.succeed(upstream))
1292
1293/**
1294 * Creates a channel from a PubSub subscription.

Callers 15

LayerMap.tsFile · 0.90
LayerRef.tsFile · 0.90
Pool.tsFile · 0.90
buildNodeMapsFunction · 0.70
buildEdgeMapFunction · 0.70
resultMemberMethod · 0.50
makeFunction · 0.50
makeFunction · 0.50
makeFunction · 0.50
makeFunction · 0.50
makeFunction · 0.50
makeMemoryFunction · 0.50

Calls 2

fromTransformFunction · 0.70
succeedMethod · 0.45

Tested by

no test coverage detected