Skip to content

Canceling requests to service? #30

@ChuckJonas

Description

@ChuckJonas

Hey,

Just wondering how you handle the queueing up of multiple listCompletions requests. I'm noticing that if I queue up several requests back to back, the service starts to take longer and longer to respond (likely running out of memory?).

I figure this is something that you've handled in your VIM plugin. Is there someway to cancel the previous listCompletion when new ones come in?

Here what my plugin debugs end up looking like to help you visualize the problem I'm running into.

Sending CMD: --action=listCompletions 
Sending CMD: --action=listCompletions 
Sending CMD: --action=listCompletions 
Sending CMD: --action=listCompletions 

[INFO] Executor - # Time taken: 20.004s

[INFO] Executor - # Time taken: 20.004s

[INFO] Executor - # Time taken: 20.005s

[INFO] Executor - # Time taken: 15.032s


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