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

Method native

packages/platform/deno/src/DenoFileSystem.ts:228–232  ·  view source on GitHub ↗
(signal: AbortSignal, evaluate: () => Promise<A>)

Source from the content-addressed store, hash-verified

226 }
227
228 private native<A>(signal: AbortSignal, evaluate: () => Promise<A>): Promise<A> {
229 const result = this.nativeQueue.then(() => signal.aborted ? Promise.reject(signal.reason) : evaluate())
230 this.nativeQueue = result.catch(() => undefined)
231 return result
232 }
233
234 private readChunk(method: string, buffer: Uint8Array, explicit: bigint | undefined) {
235 return Effect.suspend(() => {

Callers 2

readChunkMethod · 0.95
writeChunkMethod · 0.95

Calls 2

rejectMethod · 0.80
evaluateFunction · 0.50

Tested by

no test coverage detected