Skip to content

Enhancement request: .close() should wait for in-flight requests to complete #382

Closed
@clementallen

Description

@clementallen

How would the enhancement work?

Currently, the optimizely.close() Promise will send and wait for any pending events. However, it does not wait for the completion of events that are in the progress of being sent.

When would the enhancement be useful?

To avoid events half way through being sent getting cancelled before sending is complete.

@optimizely/optimizely-sdk version: 3.3.2

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