MCPcopy Create free account
hub / github.com/nodejs/node / errorWithEAGAIN

Function errorWithEAGAIN

test/parallel/test-fs-write-stream-eagain.mjs:10–12  ·  view source on GitHub ↗
(fd, buffer, offset, length, position, callback)

Source from the content-addressed store, hash-verified

8tmpdir.refresh();
9const file = tmpdir.resolve('writeStreamEAGAIN.txt');
10const errorWithEAGAIN = (fd, buffer, offset, length, position, callback) => {
11 callback(Object.assign(new Error(), { code: 'EAGAIN' }), 0, buffer);
12};
13
14describe('WriteStream EAGAIN', { concurrency: !process.env.TEST_PARALLEL }, () => {
15 it('_write', async () => {

Callers

nothing calls this directly

Calls 2

assignMethod · 0.80
callbackFunction · 0.70

Tested by

no test coverage detected