PretryEAGAIN
Bun

property

fs.Utf8StreamOptions.retryEAGAIN

retryEAGAIN?: (err: null | Error, writeBufferLen: number, remainingBufferLen: number) => boolean

A function that will be called when write(), writeSync(), or flushSync() encounters an EAGAIN or EBUSY error. If the return value is true the operation will be retried, otherwise it will bubble the error. The err is the error that caused this function to be called, writeBufferLen is the length of the buffer that was written, and remainingBufferLen is the length of the remaining buffer that the stream did not try to write.