Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.
This repository was archived by the owner on May 30, 2024. It is now read-only.

Can setInterval and network I/O be moved out of LDClient#init? #8

@ttahmouch

Description

@ttahmouch

We currently have a problem where we are not able to execute LDClient#init in a child process and expect the process to return an exit code. This is perceivably because the process may never exit its own event loop because setInterval will keep the event loop busy forever.

Is there a reason that instantiating the client in memory needs to begin flushing every 5 seconds? Could this perhaps be a lazy and start when LDClient#toggle is invoked?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions