MCPcopy
hub / github.com/Effect-TS/effect / mergeAll

Function mergeAll

packages/effect/src/internal/channel.ts:977–1015  ·  view source on GitHub ↗
(
  options: {
    readonly concurrency: number | "unbounded"
    readonly bufferSize?: number | undefined
    readonly mergeStrategy?: MergeStrategy.MergeStrategy | undefined
  }
)

Source from the content-addressed store, hash-verified

975
976/** @internal */
977export const mergeAll = (
978 options: {
979 readonly concurrency: number | "unbounded"
980 readonly bufferSize?: number | undefined
981 readonly mergeStrategy?: MergeStrategy.MergeStrategy | undefined
982 }
983) => {
984 return <
985 OutElem,
986 InElem1,
987 OutErr1,
988 InErr1,
989 InDone1,
990 Env1,
991 InElem,
992 OutErr,
993 InErr,
994 InDone,
995 Env
996 >(
997 channels: Channel.Channel<
998 Channel.Channel<OutElem, InElem1, OutErr1, InErr1, unknown, InDone1, Env1>,
999 InElem,
1000 OutErr,
1001 InErr,
1002 unknown,
1003 InDone,
1004 Env
1005 >
1006 ): Channel.Channel<
1007 OutElem,
1008 InElem & InElem1,
1009 OutErr | OutErr1,
1010 InErr & InErr1,
1011 unknown,
1012 InDone & InDone1,
1013 Env | Env1
1014 > => mergeAllWith(options)(channels, constVoid)
1015}
1016
1017/** @internal */
1018export const mergeAllUnbounded = <

Callers 1

channel.tsFile · 0.70

Calls 1

mergeAllWithFunction · 0.85

Tested by

no test coverage detected