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

Function empty

packages/effect/src/TxChunk.ts:159–160  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

157 * @since 4.0.0
158 */
159export const empty = <A = never>(): Effect.Effect<TxChunk<A>> =>
160 Effect.map(TxRef.make(Chunk.empty<A>()), (ref) => makeUnsafe(ref))
161
162/**
163 * Creates a new `TxChunk` from an iterable.

Callers

nothing calls this directly

Calls 3

makeUnsafeFunction · 0.70
makeMethod · 0.65
mapMethod · 0.45

Tested by

no test coverage detected