Skip to content

Add ability to increase duration before Timeout in FsaNodeSyncAdapterWorker #1228

@justgook

Description

@justgook

I have quite weird setup, where some file writes can take 300-500ms to create file. and im using FsaNodeSyncWorker to make all my FS operations sync writeFileSync, unlinkSync..

problem is that:

const sleepUntil = (condition: () => boolean, ms: number = 100) => {

there is hardcoded 100ms, and that is not enough.

wold be nice if we could add SyncMessenger and on top of it in FsaNodeSyncAdapterWorker option to set this sleepUntil timeout duration.

if you like I can create PR, but from what I see that was intended just somehow left forgotten:

sleepUntil(() => int32[1] === 1);

that is only place where this function is called, and it is called without second argument.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions