Download .opencode/node_modules/effect/dist/unstable/rpc/Utils.d.ts from Chenloong999/opencode-data: direct link, hf CLI and curl.
- Browser
- Download file 1.18 kB
-
https://huggingface.co/datasets/Chenloong999/opencode-data/resolve/main/.opencode/node_modules/effect/dist/unstable/rpc/Utils.d.ts
- Command line
-
hf download hf://datasets/Chenloong999/opencode-data/.opencode/node_modules/effect/dist/unstable/rpc/Utils.d.ts
-
curl -L -o Utils.d.ts https://huggingface.co/datasets/Chenloong999/opencode-data/resolve/main/.opencode/node_modules/effect/dist/unstable/rpc/Utils.d.ts
1.18 kB
| import * as Effect from "../../Effect.ts"; | |
| import type { Protocol } from "./RpcClient.ts"; | |
| import type { FromServerEncoded } from "./RpcMessage.ts"; | |
| /** | |
| * Builds a service with a `run` method that buffers writes until `run` installs | |
| * a writer, replays buffered writes with their original contexts, and restores | |
| * the previous writer when the run ends. | |
| * | |
| * @category services | |
| * @since 4.0.0 | |
| */ | |
| export declare const withRun: <A extends { | |
| readonly run: (f: (...args: Array<any>) => Effect.Effect<void>) => Effect.Effect<never>; | |
| }>() => <EX, RX>(f: (write: Parameters<A["run"]>[0]) => Effect.Effect<Omit<A, "run">, EX, RX>) => Effect.Effect<A, EX, RX>; | |
| /** | |
| * Builds an RPC client protocol service that tracks active client IDs and | |
| * buffers server responses per client until that client's `run` handler is | |
| * installed. | |
| * | |
| * @category services | |
| * @since 4.0.0 | |
| */ | |
| export declare const withRunClient: <EX, RX>(f: (write: (clientId: number, response: FromServerEncoded) => Effect.Effect<void>, clientIds: ReadonlySet<number>) => Effect.Effect<Omit<Protocol["Service"], "run">, EX, RX>) => Effect.Effect<Protocol["Service"], EX, RX>; | |
| //# sourceMappingURL=Utils.d.ts.map |