Skip to content

completed promise does not resolve after terminate #316

Open
@Christilut

Description

@Christilut

My code is waiting for the completed promise, eg await this.pool.completed() but after using await this.pool.terminate(true), the completed promise still waits.
Is that intended? Shouldn't it either throw or resolve?

I can work around it with a second promise and using Promise.any() but that seems unintuitive.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions