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

Function makeChannel

packages/platform/src/Socket.ts:314–322  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

312 * @category constructors
313 */
314export const makeChannel = <IE = never>(): Channel.Channel<
315 Chunk.Chunk<Uint8Array>,
316 Chunk.Chunk<Uint8Array | string | CloseEvent>,
317 SocketError | IE,
318 IE,
319 void,
320 unknown,
321 Socket
322> => Channel.unwrap(Effect.map(Socket, toChannelWith<IE>()))
323
324/**
325 * @since 1.0.0

Callers

nothing calls this directly

Calls 2

toChannelWithFunction · 0.85
mapMethod · 0.65

Tested by

no test coverage detected